Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
jb...@google.com <jb...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
Description
Component used: Activity Version used: 1.2.0-alpha07
If you register for a result with a
LifecycleOwner
and your activity goes through process death and restoration, once it is created again if there is already result a waiting to be returned to theLifecycleOwner
an observer is added to wait until theLifecycle
isSTARTED
. When the lifecycle owner is unregistered, the observer is never removed.We should keep track of any observers added to the
LifecycleOwner
and remove them if the callback for the lifecycle owner is ever unregistered.