reduce recalculation activity some
This commit is contained in:
parent
de62324e82
commit
3d6b2304b3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue