From 27d6a02006ef464b16cd34f01209d17351664c0f Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 8 Jul 2014 16:49:20 +0300 Subject: [PATCH] Fixed bug when user changes routing parameter and racalculation of route doesn't occur. --- .../plus/views/controls/MapRoutePreferencesControl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/controls/MapRoutePreferencesControl.java b/OsmAnd/src/net/osmand/plus/views/controls/MapRoutePreferencesControl.java index f937f460be..3ba34e2e86 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/MapRoutePreferencesControl.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/MapRoutePreferencesControl.java @@ -296,9 +296,9 @@ public class MapRoutePreferencesControl extends MapControls { //if short way that it should set valut to fast mode opposite of current if (rp.routingParameter != null && rp.routingParameter.getId().equals("short_way")){ settings.FAST_ROUTE_MODE.set(!isChecked); - } else { - rp.setSelected(settings, isChecked); } + rp.setSelected(settings, isChecked); + if(rp instanceof OtherLocalRoutingParameter) { updateGpxRoutingParameter((OtherLocalRoutingParameter) rp); }