diff --git a/OsmAnd/src/net/osmand/plus/TargetPointsHelper.java b/OsmAnd/src/net/osmand/plus/TargetPointsHelper.java index c12309ac5b..71ddddf064 100644 --- a/OsmAnd/src/net/osmand/plus/TargetPointsHelper.java +++ b/OsmAnd/src/net/osmand/plus/TargetPointsHelper.java @@ -647,7 +647,7 @@ public class TargetPointsHelper { public boolean hasTooLongDistanceToNavigate() { - if (settings.ROUTER_SERVICE.getModeValue(routingHelper.getAppMode()) != RouteService.OSMAND) { + if (routingHelper.getAppMode().getRouteService() != RouteService.OSMAND) { return false; } Location current = routingHelper.getLastProjection(); diff --git a/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileFragment.java b/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileFragment.java index 1a9037148e..d1beace585 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileFragment.java +++ b/OsmAnd/src/net/osmand/plus/profiles/SettingsProfileFragment.java @@ -152,7 +152,7 @@ public class SettingsProfileFragment extends BaseOsmAndFragment { if (mode != ApplicationMode.DEFAULT) { profiles.add(new ProfileDataObject( mode.toHumanString(ctx), ctx.getString(BaseProfilesDescr.valueOf(mode.getStringKey().toUpperCase()).getDescrRes()), - mode.getStringKey(), mode.getSmallIconDark(), false, mode.getIconColorInfo())); + mode.getStringKey(), mode.getIconRes(), false, mode.getIconColorInfo())); } } return profiles; diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java index 0dad050ffd..d48997a3a2 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java @@ -532,7 +532,6 @@ public class RouteProvider { newParams.ctx = rParams.ctx; newParams.calculationProgress = rParams.calculationProgress; newParams.mode = rParams.mode; - newParams.type = RouteService.OSMAND; newParams.leftSide = rParams.leftSide; RouteCalculationResult newRes = null; try {