From cc4621de29f40fbd9d10d01231a48101317dba08 Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 8 Nov 2019 18:36:41 +0200 Subject: [PATCH] Fix fastest route and fuel efficient dependency --- .../src/net/osmand/plus/settings/RouteParametersFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/settings/RouteParametersFragment.java b/OsmAnd/src/net/osmand/plus/settings/RouteParametersFragment.java index b2de0d6a8c..37e9158531 100644 --- a/OsmAnd/src/net/osmand/plus/settings/RouteParametersFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/RouteParametersFragment.java @@ -286,6 +286,8 @@ public class RouteParametersFragment extends BaseSettingsFragment implements OnP } recalculateRoute(); 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);