implement returning to original map view profile after GPX routing

This commit is contained in:
sonora 2012-09-07 20:10:24 +02:00
parent 1c68f942bf
commit fe852f83b7

View file

@ -589,6 +589,10 @@ public class MapActivityActions implements DialogProvider {
} }
} }
// change global settings // 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); boolean changed = settings.APPLICATION_MODE.set(appMode);
if (changed) { if (changed) {
mapActivity.updateApplicationModeSettings(); mapActivity.updateApplicationModeSettings();