|
public void onActivityStopped(Activity activity) { |
|
if (this.activity == activity) { |
|
debugDrawer.onStop(); |
|
} |
|
} |
|
@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.
DebugDrawer/debugdrawer/src/main/java/io/palaima/debugdrawer/DebugDrawerLifecycleCallbacks.java
Lines 43 to 47 in 49b5992
DebugDrawer/debugdrawer/src/main/java/io/palaima/debugdrawer/DebugDrawerLifecycleCallbacks.java
Lines 54 to 59 in 49b5992
If three drawer is open, and the third drawer is destroyed, the previous two
DebugDrawerLifecycleCallbackswill also be removed.I think the code in
onActivityDestroyedmethod also need check If the Destroyed Activity is current activity or not.