From 877dac1a260303e52fb80eff816b49e335ea692f Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 13 Jan 2016 11:24:41 +0100 Subject: [PATCH] Try fix Issue 2136(b) --- OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java index 8c5bdff6c9..d8228aa104 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java @@ -1223,6 +1223,10 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis public void deleteWaypoint(int position) { if (swipeDismissListener != null) { swipeDismissListener.delete(position); + //Issue 2136(b) + if (mapActivity.getMyApplication().getTargetPointsHelper().getPointToNavigate() == null) { + mapActivity.getMapActions().stopNavigationWithoutConfirm(); + } } } }