fix defining driving region 2 #7668

This commit is contained in:
MadWasp79 2020-01-23 10:40:24 +02:00
parent e5ca877802
commit d0aaddf28c

View file

@ -168,6 +168,7 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
if (settings.DRIVING_REGION_AUTOMATIC.get() && !drivingRegionUpdated && !app.isApplicationInitializing()) { if (settings.DRIVING_REGION_AUTOMATIC.get() && !drivingRegionUpdated && !app.isApplicationInitializing()) {
drivingRegionUpdated = true; drivingRegionUpdated = true;
detectDrivingRegion(new LatLon(location.getLatitude(), location.getLongitude())); detectDrivingRegion(new LatLon(location.getLatitude(), location.getLongitude()));
app.getRoutingHelper().setLastStartingLocation(location);
} }
} }
if (mapView != null) { if (mapView != null) {