implement returning to original map view profile after GPX routing
This commit is contained in:
parent
1c68f942bf
commit
fe852f83b7
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue