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

BasePopupView的onDestroy不会触发 #1237

Open
zhangsan945 opened this issue Oct 20, 2024 · 0 comments
Open

BasePopupView的onDestroy不会触发 #1237

zhangsan945 opened this issue Oct 20, 2024 · 0 comments

Comments

@zhangsan945
Copy link

zhangsan945 commented Oct 20, 2024

image
BasePopupView虽然有个lifecycleRegistry成员变量,但是没有addObserver,即使做了如lifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.ON_DESTROY);这样的操作,也不会触发
image
BasePopup内部在attatch的时候会注册一个activty的lifecycle的观察者,这本来可以触发onDestroy,
image
但是remove的时候又马上remove掉了
image
这会导致onDestroy不能触发
image

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