From 3d6b2304b307974c50381be7ddf0a199f71da2d2 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 16 Mar 2012 01:11:08 +0100 Subject: [PATCH] reduce recalculation activity some --- OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index 2978be2ce4..ceb9ca0309 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -306,7 +306,7 @@ public class RoutingHelper { lastFixedLocation = currentLocation; // 8. Strange Direction? Then re-calculate route. (Added new, may possibly even replace triggers 4, 5a, 5b ?) - if(suppressTurnPrompt){ + if(suppressTurnPrompt && (currentLocation.distanceTo(routeNodes.get(currentRoute) > 100) ){ calculateRoute = true; }