-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Description
DebugDrawer/debugdrawer/src/main/java/io/palaima/debugdrawer/DebugDrawerLifecycleCallbacks.java
Lines 43 to 47 in 49b5992
| public void onActivityStopped(Activity activity) { | |
| if (this.activity == activity) { | |
| debugDrawer.onStop(); | |
| } | |
| } |
DebugDrawer/debugdrawer/src/main/java/io/palaima/debugdrawer/DebugDrawerLifecycleCallbacks.java
Lines 54 to 59 in 49b5992
| @Override | |
| public void onActivityDestroyed(Activity activity) { | |
| this.activity.getApplication().unregisterActivityLifecycleCallbacks(this); | |
| this.activity = null; | |
| debugDrawer = null; | |
| } |
If three drawer is open, and the third drawer is destroyed, the previous two DebugDrawerLifecycleCallbacks will also be removed.
I think the code in onActivityDestroyed method also need check If the Destroyed Activity is current activity or not.
Metadata
Metadata
Assignees
Labels
No labels