From fe852f83b7400dce159a949ef7d98a4bf4d6c19d Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 7 Sep 2012 20:10:24 +0200 Subject: [PATCH] implement returning to original map view profile after GPX routing --- OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index f1c0da5fef..7662fd6f89 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -589,6 +589,10 @@ public class MapActivityActions implements DialogProvider { } } // change global settings + // Do not overwrite PREV_APPLICATION_MODE if already navigating + if (!routingHelper.isFollowingMode()) { + settings.PREV_APPLICATION_MODE.set(settings.APPLICATION_MODE.get()); + } boolean changed = settings.APPLICATION_MODE.set(appMode); if (changed) { mapActivity.updateApplicationModeSettings();