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

Add onDestroy as a method that must be implemented for NavigationView #632

Merged
merged 1 commit into from
Jan 6, 2018

Conversation

danesfeder
Copy link
Contributor

@danesfeder danesfeder commented Jan 4, 2018

If using the NavigationView in a Fragment implementation, the MapView is not properly destroyed.

This is because the we are using the Activity context to look for the onDestroy lifecycle event using the new architecture components.

In a Fragment, MapView#onDestroy needs to be called in Fragment#onDestroyView. This PR re-exposes the lifecycle method to allow developers to do this.

cc @ericrwolfe @tobrun @langsmith

@danesfeder danesfeder added the bug Defect to be fixed. label Jan 4, 2018
@danesfeder danesfeder self-assigned this Jan 4, 2018
@langsmith
Copy link
Contributor

Love it. Thanks @danesfeder

@danesfeder danesfeder merged commit 0c1eadf into master Jan 6, 2018
@danesfeder danesfeder deleted the dan-ondestroy branch January 6, 2018 15:13
@danesfeder danesfeder mentioned this pull request Jan 23, 2018
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect to be fixed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants