Skip to content

Commit

Permalink
Separate MapView disposal from LifecycleOwner changes (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
DSteve595 committed Nov 30, 2022
1 parent 904708a commit 0618bde
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -177,6 +177,10 @@ private fun MapLifecycle(mapView: MapView) {
onDispose {
lifecycle.removeObserver(mapLifecycleObserver)
context.unregisterComponentCallbacks(callbacks)
}
}
DisposableEffect(mapView) {
onDispose {
mapView.onDestroy()
mapView.removeAllViews()
}
Expand Down

0 comments on commit 0618bde

Please sign in to comment.