Skip to content

Bug in onActivityDestroyed() method. #105

@Nstd

Description

@Nstd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions