Fix compilation

This commit is contained in:
Victor Shcherb 2019-06-25 11:59:41 +02:00
parent 523fdd1e00
commit bffb13f7e9
3 changed files with 2 additions and 3 deletions

View file

@ -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();

View file

@ -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;

View file

@ -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 {