Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
To reproduce the issue. Open a fragment for example then request permission. send the app to background, open it again from recent apps. it will crash with the above exception.
jb...@google.com <jb...@google.com> #3
IMPORTANT:
Please try
Studio Build: OS: Android Device model number & build number: Android SDK Platform Tools version: Attach the idea.log file via Help > Show Log in Finder.
Steps to Reproduce: 1. 2. 3.
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.