Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.16.0
VERSION_NAME=1.16.1-SNAPSHOT

POM_DESCRIPTION=Square Workflow

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,13 @@ internal class DialogCollator {
onSessionsUpdated: (List<DialogSession>) -> Unit
) {
check(expectedUpdates > 0) {
"Each update() call must be preceded by a call to ViewEnvironment.establishDialogCollator, " +
"but expectedUpdates is $expectedUpdates"
"Each scheduleUpdates() call must be preceded by a call to" +
" ViewEnvironment.establishDialogCollator, but expectedUpdates is $expectedUpdates"
}

// Under nested ComposeView instances we may get redundant updates from the
// same caller. Just throw away the upstream ones.
this.allUpdates.removeAll { it.id == id }
this.allUpdates.add(IdAndUpdates(id, updates, onSessionsUpdated))
if (--expectedUpdates == 0) doUpdate()
}
Expand Down
Loading