reduce recalculation activity some

This commit is contained in:
sonora 2012-03-16 01:11:08 +01:00
parent de62324e82
commit 3d6b2304b3

View file

@ -306,7 +306,7 @@ public class RoutingHelper {
lastFixedLocation = currentLocation; lastFixedLocation = currentLocation;
// 8. Strange Direction? Then re-calculate route. (Added new, may possibly even replace triggers 4, 5a, 5b ?) // 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; calculateRoute = true;
} }