Fix to keep map position when app was in background

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-03-29 11:50:49 +02:00
parent 95afdf7c81
commit f323049815
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -273,7 +273,7 @@ class LocationPickerActivity :
mapController.setZoom(ZOOM_LEVEL_DEFAULT)
}
val zoomToCurrentPositionOnFirstFix = geocodingResult == null
val zoomToCurrentPositionOnFirstFix = geocodingResult == null && moveToCurrentLocation
locationOverlay.runOnFirstFix {
if (locationOverlay.myLocation != null) {
myLocation = locationOverlay.myLocation