align order of statements
This commit is contained in:
parent
f2b63baa1e
commit
20a1a350e7
1 changed files with 1 additions and 2 deletions
|
@ -462,11 +462,11 @@ public class MapActivityActions implements DialogProvider {
|
|||
return;
|
||||
}
|
||||
ApplicationMode mode = getAppMode(buttons, settings);
|
||||
routingHelper.setAppMode(mode);
|
||||
// Do not overwrite PREV_APPLICATION_MODE if already navigating
|
||||
if (!routingHelper.isFollowingMode()) {
|
||||
settings.PREV_APPLICATION_MODE.set(settings.APPLICATION_MODE.get());
|
||||
}
|
||||
routingHelper.setAppMode(mode);
|
||||
settings.FOLLOW_THE_ROUTE.set(false);
|
||||
settings.FOLLOW_THE_GPX_ROUTE.set(null);
|
||||
routingHelper.setFollowingMode(false);
|
||||
|
@ -504,7 +504,6 @@ public class MapActivityActions implements DialogProvider {
|
|||
mapActivity.updateApplicationModeSettings();
|
||||
mapActivity.getMapView().refreshMap(true);
|
||||
}
|
||||
|
||||
routingHelper.setAppMode(mode);
|
||||
settings.FOLLOW_THE_ROUTE.set(true);
|
||||
settings.FOLLOW_THE_GPX_ROUTE.set(null);
|
||||
|
|
Loading…
Reference in a new issue