Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in onActivityDestroyed() method. #105

Open
Nstd opened this issue Sep 24, 2020 · 0 comments
Open

Bug in onActivityDestroyed() method. #105

Nstd opened this issue Sep 24, 2020 · 0 comments

Comments

@Nstd
Copy link

Nstd commented Sep 24, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant