diff --git a/OsmAnd/src/net/osmand/plus/routing/TransportRoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/TransportRoutingHelper.java index 79618ec374..f8dab2119b 100644 --- a/OsmAnd/src/net/osmand/plus/routing/TransportRoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/TransportRoutingHelper.java @@ -48,7 +48,7 @@ public class TransportRoutingHelper { private List routes; private Map, RouteCalculationResult> walkingRouteSegments; - private int currentRoute; + private int currentRoute = -1; private LatLon startLocation; private LatLon endLocation; @@ -174,6 +174,7 @@ public class TransportRoutingHelper { if (progressRoute != null) { progressRoute.start(); } + setCurrentRoute(-1); } private void updateProgress(final TransportRouteCalculationParams params) { @@ -194,6 +195,9 @@ public class TransportRoutingHelper { updateProgress(params); } } else { + if (routes.size() > 0) { + setCurrentRoute(0); + } progressRoute.finish(); } }