Skip to content

Commit

Permalink
fix: android: remove lifecycleObserver properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Apr 3, 2024
1 parent a6185e2 commit a4de88c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class GoogleMapsNavigationPlugin : FlutterPlugin, ActivityAware {
}

override fun onDetachedFromActivity() {
lifecycle.addObserver(GoogleMapsNavigationSessionManager.getInstance())
lifecycle.removeObserver(GoogleMapsNavigationSessionManager.getInstance())
GoogleMapsNavigationSessionManager.getInstance().onActivityDestroyed()
lifecycle.removeObserver(viewRegistry)
}
Expand Down

0 comments on commit a4de88c

Please sign in to comment.