Fix #10206
This commit is contained in:
parent
b11f8a64fe
commit
5b900f8bfc
1 changed files with 10 additions and 1 deletions
|
@ -978,7 +978,16 @@ public class OsmandSettings {
|
||||||
ROUTING_PROFILE.setModeDefaultValue(ApplicationMode.SKI, "ski");
|
ROUTING_PROFILE.setModeDefaultValue(ApplicationMode.SKI, "ski");
|
||||||
}
|
}
|
||||||
|
|
||||||
public final CommonPreference<RouteService> ROUTE_SERVICE = new EnumStringPreference<>(this, "route_service", RouteService.OSMAND, RouteService.values()).makeProfile().cache();
|
public final CommonPreference<RouteService> ROUTE_SERVICE = new EnumStringPreference<RouteService>(this, "route_service", RouteService.OSMAND, RouteService.values()) {
|
||||||
|
@Override
|
||||||
|
public RouteService getModeValue(ApplicationMode mode) {
|
||||||
|
if (mode == ApplicationMode.DEFAULT) {
|
||||||
|
return RouteService.STRAIGHT;
|
||||||
|
} else {
|
||||||
|
return super.getModeValue(mode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}.makeProfile().cache();
|
||||||
|
|
||||||
{
|
{
|
||||||
ROUTE_SERVICE.setModeDefaultValue(ApplicationMode.DEFAULT, RouteService.STRAIGHT);
|
ROUTE_SERVICE.setModeDefaultValue(ApplicationMode.DEFAULT, RouteService.STRAIGHT);
|
||||||
|
|
Loading…
Reference in a new issue