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

Fragment RefWatcher OnDestroyView #806

Closed
eygraber opened this issue Aug 2, 2017 · 7 comments
Closed

Fragment RefWatcher OnDestroyView #806

eygraber opened this issue Aug 2, 2017 · 7 comments

Comments

@eygraber
Copy link
Contributor

eygraber commented Aug 2, 2017

The wiki says that RefWatcher.watch should be called in onDestroyView when watching a Fragment. Why not onDestroy?

@JakeWharton
Copy link
Member

JakeWharton commented Aug 2, 2017 via email

@eygraber
Copy link
Contributor Author

eygraber commented Aug 2, 2017

@JakeWharton thanks for the answer, but not sure I understand the yes and no. Why not onDestroy for the instance?

@JakeWharton
Copy link
Member

JakeWharton commented Aug 2, 2017 via email

@eygraber
Copy link
Contributor Author

eygraber commented Aug 2, 2017

Sorry I'm running on 0 sleep and 0 coffee 😵

You're saying yes, the instance should be watched in onDestroy, and the view should be watched in onDestroyView?

@JakeWharton
Copy link
Member

Updated

@eygraber
Copy link
Contributor Author

eygraber commented Aug 3, 2017

@JakeWharton is there any need to watch the fragment's view in onDestroyView?

@JakeWharton
Copy link
Member

JakeWharton commented Aug 3, 2017 via email

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