You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our homegrown `View.takeWhileAttached` somehow causes a strange issue on API
30 devices where `View.onAttached` can be called twice, at least since the
recent change to introduce `View.start` landed in #602. We've seen crashes on
a variety of Samsung devices out in the wild, and can reproduce the issue on
API 30 AVDs via Android Studio's _Apply Changes and Restart Activity_.
The fix is to be mainstream and use `Lifecycle`, which add as a new required
parameter to `WorkflowLayout.start`. The old overloads are now deprecated,
and will be deleted soon.
Copy file name to clipboardExpand all lines: workflow-ui/core-android/api/core-android.api
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -132,8 +132,11 @@ public abstract interface class com/squareup/workflow1/ui/ViewStarter {
132
132
public final class com/squareup/workflow1/ui/WorkflowLayout : android/widget/FrameLayout {
133
133
public fun <init> (Landroid/content/Context;Landroid/util/AttributeSet;)V
134
134
public synthetic fun <init> (Landroid/content/Context;Landroid/util/AttributeSet;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
135
+
public final fun start (Landroidx/lifecycle/Lifecycle;Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewEnvironment;)V
136
+
public final fun start (Landroidx/lifecycle/Lifecycle;Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewRegistry;)V
135
137
public final fun start (Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewEnvironment;)V
136
138
public final fun start (Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewRegistry;)V
139
+
public static synthetic fun start$default (Lcom/squareup/workflow1/ui/WorkflowLayout;Landroidx/lifecycle/Lifecycle;Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewEnvironment;ILjava/lang/Object;)V
137
140
public static synthetic fun start$default (Lcom/squareup/workflow1/ui/WorkflowLayout;Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewEnvironment;ILjava/lang/Object;)V
0 commit comments