Skip to content

Commit

Permalink
Merge branch 'v1.10-release'
Browse files Browse the repository at this point in the history
* v1.10-release:
  Finish releasing v1.10.0-beta03
  Releasing v1.10.0-beta03
  Fixes bad readSparseArray call in WorkflowLayout
  • Loading branch information
rjrjr committed Mar 16, 2023
2 parents c84b4d7 + 7600ba4 commit 321ad71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android.useAndroidX=true
systemProp.org.gradle.internal.publish.checksums.insecure=true

GROUP=com.squareup.workflow1
VERSION_NAME=1.10.0-beta03-SNAPSHOT
VERSION_NAME=1.10.0-beta04-SNAPSHOT

POM_DESCRIPTION=Square Workflow

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public class WorkflowLayout(

constructor(source: Parcel) : super(source) {
this.childState = if (VERSION.SDK_INT >= VERSION_CODES.TIRAMISU) {
source.readSparseArray(SavedState::class.java.classLoader, SavedState::class.java)!!
source.readSparseArray(SavedState::class.java.classLoader, Parcelable::class.java)!!
} else {
@Suppress("DEPRECATION")
source.readSparseArray(SavedState::class.java.classLoader)!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ internal data class ViewStateFrame(
override fun createFromParcel(parcel: Parcel): ViewStateFrame {
val key = parcel.readString()!!
val viewState = if (VERSION.SDK_INT >= VERSION_CODES.TIRAMISU) {
parcel.readSparseArray<Parcelable>(
ViewStateFrame::class.java.classLoader,
Parcelable::class.java
)!!
parcel.readSparseArray(ViewStateFrame::class.java.classLoader, Parcelable::class.java)!!
} else {
@Suppress("DEPRECATION")
parcel.readSparseArray<Parcelable>(ViewStateFrame::class.java.classLoader)!!
Expand Down

0 comments on commit 321ad71

Please sign in to comment.