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

Make view null on onViewDetached #12

Closed
kratos23 opened this issue Nov 4, 2016 · 1 comment
Closed

Make view null on onViewDetached #12

kratos23 opened this issue Nov 4, 2016 · 1 comment

Comments

@kratos23
Copy link

kratos23 commented Nov 4, 2016

default

Offical Guide

If system kill app activity, onDestroy() may be will not cause, therefore onDestroyed will not cause too, therefore view link will be not null, and we will have memory leak.

@SaeedMasoumi
Copy link

@kratos23 all view references in AbstractPresenter and_ViewDelegate have been stored as WeakReference. Also in presenter, the view reference will be set to null on onViewDetached

@kratos23 kratos23 closed this as completed Nov 5, 2016
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

2 participants