Fix usability issue. Revert back default state after navigation
This commit is contained in:
parent
38047b3ee4
commit
4411f76eb2
1 changed files with 4 additions and 0 deletions
|
@ -1213,6 +1213,10 @@ public class MapActivity extends AccessibleActivity implements IMapLocationListe
|
|||
if (mapLayers.getNavigationLayer().getPointToNavigate() != null) {
|
||||
if (routingHelper.isRouteCalculated() || routingHelper.isFollowingMode() || routingHelper.isRouteBeingCalculated()) {
|
||||
routingHelper.setFinalAndCurrentLocation(null, routingHelper.getCurrentLocation(), routingHelper.getCurrentGPXRoute());
|
||||
// restore default mode
|
||||
boolean changed = settings.APPLICATION_MODE.set(ApplicationMode.DEFAULT);
|
||||
updateApplicationModeSettings();
|
||||
mapView.refreshMap(changed);
|
||||
} else {
|
||||
navigateToPoint(null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue