From 06d30949796cf75ecd731dccc518825edccfa86b Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Tue, 19 Nov 2024 13:22:38 +0100 Subject: [PATCH] debug log for new location as suggested in https://github.com/streetcomplete/StreetComplete/issues/6001#issuecomment-2465259542 --- .../streetcomplete/screens/main/map/MainMapFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/de/westnordost/streetcomplete/screens/main/map/MainMapFragment.kt b/app/src/main/java/de/westnordost/streetcomplete/screens/main/map/MainMapFragment.kt index 555d2a0ee4..fe77726558 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/screens/main/map/MainMapFragment.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/screens/main/map/MainMapFragment.kt @@ -55,6 +55,7 @@ import org.maplibre.android.maps.Style import org.maplibre.android.style.layers.Property import org.maplibre.android.style.layers.PropertyFactory.visibility import kotlin.math.PI +import de.westnordost.streetcomplete.util.logs.Log /** This is the map shown in the main view. It manages a map that shows the quest pins, quest * geometry, overlays, tracks, location... */ @@ -346,6 +347,7 @@ class MainMapFragment : MapFragment(), ShowsGeometryMarkers { } private fun onLocationChanged(location: Location) { + Log.e("LOCATION", "Got a new Location!") displayedLocation = location recentLocationStore.add(location) locationMapComponent?.targetLocation = location