Skip to content

Commit daba649

Browse files
Update workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/WorkflowLifecycleOwner.kt
Co-authored-by: Ray Ryan <rjrjr@users.noreply.github.com>
1 parent 5eff59c commit daba649

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/WorkflowLifecycleOwner.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ internal class RealWorkflowLifecycleOwner(
116116
* (once it's attached), or if no [ViewTreeLifecycleOwner] is set, then by trying to find a
117117
* [LifecycleOwner] on the view's context.
118118
*
119-
* When the view is detached, we keep the reference to, and observing, the previous parent
120-
* lifecycle, to ensure we get destroyed correctly if the parent is destroyed while we're
119+
* When the view is detached, we keep the reference to the previous parent
120+
* lifecycle, and keep observing it, to ensure we get destroyed correctly if the
121+
* parent is destroyed while we're
121122
* detached. The next time we're attached, we search for a parent again, in case we're attached
122123
* in a different subtree that has a different parent.
123124
*

0 commit comments

Comments
 (0)