diff --git a/gradle.properties b/gradle.properties index 9ee60234f..9b4e72796 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/WorkflowLayout.kt b/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/WorkflowLayout.kt index 904313ce6..b230ef2c0 100644 --- a/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/WorkflowLayout.kt +++ b/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/WorkflowLayout.kt @@ -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)!! diff --git a/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/container/ViewStateFrame.kt b/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/container/ViewStateFrame.kt index 5447f134a..ea439918d 100644 --- a/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/container/ViewStateFrame.kt +++ b/workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/container/ViewStateFrame.kt @@ -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( - ViewStateFrame::class.java.classLoader, - Parcelable::class.java - )!! + parcel.readSparseArray(ViewStateFrame::class.java.classLoader, Parcelable::class.java)!! } else { @Suppress("DEPRECATION") parcel.readSparseArray(ViewStateFrame::class.java.classLoader)!!