From 4ded35ea432decb80921535ab683682105520e48 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Sat, 27 Feb 2016 14:47:14 +0300 Subject: [PATCH] Small fix --- OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java index 545f0e467f..40575ce14e 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java @@ -603,7 +603,9 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis m.getPointDescription(mapActivity)); targetPoints.add(t); } - targetPointsHelper.reorderAllTargetPoints(targetPoints, false); + RoutingHelper routingHelper = mapActivity.getRoutingHelper(); + boolean updateRoute = routingHelper.isFollowingMode() || routingHelper.isRoutePlanningMode(); + targetPointsHelper.reorderAllTargetPoints(targetPoints, updateRoute); hasTargets = true; } else { targetPointsHelper.clearStartPoint(false);