Fix usability issue. Revert back default state after navigation

This commit is contained in:
Victor Shcherb 2012-05-28 01:07:20 +02:00
parent 38047b3ee4
commit 4411f76eb2

View file

@ -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);
}