mirror of
https://github.com/ev-map/EVMap.git
synced 2026-04-17 20:57:12 -04:00
always show current location on start, even if we were not following the location before
This commit is contained in:
@@ -1127,9 +1127,13 @@ class MapFragment : Fragment(), OnMapReadyCallback, MenuProvider {
|
||||
binding.search.requestFocus()
|
||||
binding.search.setSelection(locationName.length)
|
||||
}
|
||||
if (context.checkAnyLocationPermission() && prefs.currentMapMyLocationEnabled) {
|
||||
enableLocation(!positionSet, false)
|
||||
positionSet = true
|
||||
if (context.checkAnyLocationPermission()) {
|
||||
if (prefs.currentMapMyLocationEnabled && !positionSet) {
|
||||
enableLocation(true, false)
|
||||
positionSet = true
|
||||
} else {
|
||||
enableLocation(false, false)
|
||||
}
|
||||
}
|
||||
if (!positionSet) {
|
||||
// use position saved in preferences, fall back to default (Europe)
|
||||
|
||||
Reference in New Issue
Block a user