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 sketchy 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 is added as a new
required parameter to `WorkflowLayout.start`. The old overloads are now
deprecated, and will be deleted soon.
We also promote `WorkflowLayout.show` to be publicly visible, to give apps the
option of taking control over how they collect their renderings.
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
@@ -203,8 +203,11 @@ public abstract interface class com/squareup/workflow1/ui/ViewStarter {
203
203
public final class com/squareup/workflow1/ui/WorkflowLayout : android/widget/FrameLayout {
204
204
public fun <init> (Landroid/content/Context;Landroid/util/AttributeSet;)V
205
205
public synthetic fun <init> (Landroid/content/Context;Landroid/util/AttributeSet;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
206
+
public final fun start (Landroidx/lifecycle/Lifecycle;Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewEnvironment;)V
207
+
public final fun start (Landroidx/lifecycle/Lifecycle;Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewRegistry;)V
206
208
public final fun start (Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewEnvironment;)V
207
209
public final fun start (Lkotlinx/coroutines/flow/Flow;Lcom/squareup/workflow1/ui/ViewRegistry;)V
210
+
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
208
211
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