Skip to content

Commit

Permalink
fix disappearing markers
Browse files Browse the repository at this point in the history
fixes #368
  • Loading branch information
johan12345 committed Feb 18, 2025
1 parent cfe40e1 commit 03728f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/net/vonforst/evmap/fragment/MapFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,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()
Expand Down

0 comments on commit 03728f0

Please sign in to comment.