Fix check for fuel efficient pref key

This commit is contained in:
Chumva 2019-11-11 14:12:47 +02:00
parent 5411d472e1
commit a23fc026c2

View file

@ -286,7 +286,7 @@ public class RouteParametersFragment extends BaseSettingsFragment implements OnP
} }
recalculateRoute(); recalculateRoute();
return true; return true;
} else if (GeneralRouter.USE_SHORTEST_WAY.equals(key) && newValue instanceof Boolean) { } else if ("prouting_short_way".equals(key) && newValue instanceof Boolean) {
return app.getSettings().FAST_ROUTE_MODE.setModeValue(getSelectedAppMode(), !(Boolean) newValue); return app.getSettings().FAST_ROUTE_MODE.setModeValue(getSelectedAppMode(), !(Boolean) newValue);
} }