Fix fastest route and fuel efficient dependency

This commit is contained in:
Chumva 2019-11-08 18:36:41 +02:00
parent 2593ffea4e
commit cc4621de29

View file

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