From 1e314b481ce5ca8a969bf2ce728affff9510cb83 Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 8 Jan 2015 00:23:48 +0100 Subject: [PATCH] See if this fixes route-recalculation if settings change during ongoing calculation --- OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index 1fd10b52c2..2cc709af96 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -772,6 +772,8 @@ public class RoutingHelper { } public void recalculateRouteDueToSettingsChange() { + //See if this fixes route-recalculation if settings change during ongoing calculation + clearCurrentRoute(finalLocation, intermediatePoints); recalculateRouteInBackground(true, lastFixedLocation, finalLocation, intermediatePoints, currentGPXRoute, route, true, false); }