Test route.isEmpty for Issue 2515

This commit is contained in:
sonora 2015-01-10 18:16:24 +01:00
parent 82f3e5a4f6
commit 2d728556c6

View file

@ -254,7 +254,7 @@ public class RoutingHelper {
boolean calculateRoute = false;
synchronized (this) {
// 0. Route empty or needs to be extended? Then re-calculate route.
if(route.isEmpty()) {
if(route.isEmpty() || (settings.getPointToStart() != null)) {
calculateRoute = true;
} else {
// 1. Update current route position status according to latest received location