Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
371ea43744
1 changed files with 6 additions and 3 deletions
|
@ -614,10 +614,13 @@ public class MapActivityActions implements DialogProvider {
|
|||
}
|
||||
|
||||
private void enterRoutePlanningModeImpl(GPXFile gpxFile, LatLon from, String fromName) {
|
||||
|
||||
ApplicationMode mode = settings.DEFAULT_APPLICATION_MODE.get();
|
||||
if (mode == ApplicationMode.DEFAULT) {
|
||||
ApplicationMode selected = settings.APPLICATION_MODE.get();
|
||||
mode = selected == ApplicationMode.DEFAULT ? ApplicationMode.CAR : selected;
|
||||
ApplicationMode selected = settings.APPLICATION_MODE.get();
|
||||
if( selected != ApplicationMode.DEFAULT) {
|
||||
mode = selected;
|
||||
} else if (mode == ApplicationMode.DEFAULT) {
|
||||
mode = ApplicationMode.CAR ;
|
||||
}
|
||||
|
||||
OsmandApplication app = mapActivity.getMyApplication();
|
||||
|
|
Loading…
Reference in a new issue