From d479b775d4175e18df379e0b40f359786a905b25 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 10 Jan 2015 11:31:25 +0100 Subject: [PATCH] Try re-initialize start point to check impact on Issue 2515 --- OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index 99107511a0..9a79cc3763 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -778,8 +778,9 @@ public class RoutingHelper { public void recalculateRouteDueToSettingsChange() { //This should fix route-recalculation if settings change during ongoing calculation clearCurrentRoute(finalLocation, intermediatePoints); - recalculateRouteInBackground(true, lastFixedLocation, finalLocation, intermediatePoints, currentGPXRoute, route, - true, false); + // Try re-initialize start point to check impact on Issue 2515 + lastFixedLocation = TargetPoint.create(settings.getPointToStart(), settings.getStartPointDescription()); + recalculateRouteInBackground(true, lastFixedLocation, finalLocation, intermediatePoints, currentGPXRoute, route, true, false); } private void recalculateRouteInBackground(boolean force, final Location start, final LatLon end, final List intermediates,