DebugDrawer icon indicating copy to clipboard operation
DebugDrawer copied to clipboard

Bug in onActivityDestroyed() method.

Open Nstd opened this issue 5 years ago • 0 comments

https://github.com/palaima/DebugDrawer/blob/49b5992a1148757bd740c4a0b7df10ef70ade6d8/debugdrawer/src/main/java/io/palaima/debugdrawer/DebugDrawerLifecycleCallbacks.java#L43-L47

https://github.com/palaima/DebugDrawer/blob/49b5992a1148757bd740c4a0b7df10ef70ade6d8/debugdrawer/src/main/java/io/palaima/debugdrawer/DebugDrawerLifecycleCallbacks.java#L54-L59

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.

Nstd avatar Sep 24 '20 08:09 Nstd