Skip to content

Commit

Permalink
Update workflow-ui/core-android/src/main/java/com/squareup/workflow1/…
Browse files Browse the repository at this point in the history
…ui/WorkflowLifecycleOwner.kt

Co-authored-by: Ray Ryan <[email protected]>
  • Loading branch information
zach-klippenstein and rjrjr authored Aug 6, 2021
1 parent 5eff59c commit daba649
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ internal class RealWorkflowLifecycleOwner(
* (once it's attached), or if no [ViewTreeLifecycleOwner] is set, then by trying to find a
* [LifecycleOwner] on the view's context.
*
* When the view is detached, we keep the reference to, and observing, the previous parent
* lifecycle, to ensure we get destroyed correctly if the parent is destroyed while we're
* When the view is detached, we keep the reference to the previous parent
* lifecycle, and keep observing it, to ensure we get destroyed correctly if the
* parent is destroyed while we're
* detached. The next time we're attached, we search for a parent again, in case we're attached
* in a different subtree that has a different parent.
*
Expand Down

0 comments on commit daba649

Please sign in to comment.