fix disappearing markers

fixes #368
This commit is contained in:
johan12345
2025-02-18 21:49:55 +01:00
parent 7c4136c66d
commit 7fde5b50aa

View File

@@ -1608,6 +1608,10 @@ class MapFragment : Fragment(), OnMapReadyCallback, MenuProvider {
mapFragment = null
_binding = null
vm.mapProjection = null
markers.clear()
clusterMarkers = emptyList()
searchResultMarker = null
searchResultIcon = null
/* if we don't dismiss the popup menu, it will be recreated in some cases
(split-screen mode) and then have references to a destroyed fragment. */
popupMenu?.dismiss()