potential fix for the rare mapbox native crash (use onDestroyView)

This commit is contained in:
Kevin Hester
2021-02-01 22:54:04 +08:00
parent f44d9b16b1
commit 719bef7889
3 changed files with 7 additions and 3 deletions

View File

@@ -204,9 +204,9 @@ class MapFragment : ScreenFragment("Map"), Logging {
mapView?.onResume()
}
override fun onDestroy() {
override fun onDestroyView() {
mapView?.onDestroy()
super.onDestroy()
super.onDestroyView()
}
override fun onSaveInstanceState(outState: Bundle) {