From 4411f76eb24e35050994db9f6a95b65abe9ab891 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 28 May 2012 01:07:20 +0200 Subject: [PATCH] Fix usability issue. Revert back default state after navigation --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index b1f17d9553..5f9f90e5ba 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -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); }