File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/navigation Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ android.useAndroidX=true
8
8
systemProp.org.gradle.internal.publish.checksums.insecure =true
9
9
10
10
GROUP =com.squareup.workflow1
11
- VERSION_NAME =1.16.0
11
+ VERSION_NAME =1.16.1-SNAPSHOT
12
12
13
13
POM_DESCRIPTION =Square Workflow
14
14
Original file line number Diff line number Diff line change @@ -186,10 +186,13 @@ internal class DialogCollator {
186
186
onSessionsUpdated : (List <DialogSession >) -> Unit
187
187
) {
188
188
check(expectedUpdates > 0 ) {
189
- " Each update () call must be preceded by a call to ViewEnvironment.establishDialogCollator, " +
190
- " but expectedUpdates is $expectedUpdates "
189
+ " Each scheduleUpdates () call must be preceded by a call to" +
190
+ " ViewEnvironment.establishDialogCollator, but expectedUpdates is $expectedUpdates "
191
191
}
192
192
193
+ // Under nested ComposeView instances we may get redundant updates from the
194
+ // same caller. Just throw away the upstream ones.
195
+ this .allUpdates.removeAll { it.id == id }
193
196
this .allUpdates.add(IdAndUpdates (id, updates, onSessionsUpdated))
194
197
if (-- expectedUpdates == 0 ) doUpdate()
195
198
}
You can’t perform that action at this time.
0 commit comments