From 2d728556c6ccc1ebb08d268604e8e73012ae9831 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 10 Jan 2015 18:16:24 +0100 Subject: [PATCH] Test route.isEmpty for Issue 2515 --- 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 29ccb1b5aa..8686a52f8e 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -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