From dd85aa3e68485aa9aff0339b658a43f74bb82b3c Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 13 Jan 2016 17:08:53 +0100 Subject: [PATCH] Revert some fixes --- OsmAnd/src/net/osmand/plus/TargetPointsHelper.java | 5 ----- OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java | 5 ----- 2 files changed, 10 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/TargetPointsHelper.java b/OsmAnd/src/net/osmand/plus/TargetPointsHelper.java index 804e19b8d5..2a9096b876 100644 --- a/OsmAnd/src/net/osmand/plus/TargetPointsHelper.java +++ b/OsmAnd/src/net/osmand/plus/TargetPointsHelper.java @@ -227,11 +227,6 @@ public class TargetPointsHelper { } public void updateRouteAndReferesh(boolean updateRoute) { - //Fix for Issue 2136(b-d) (i.e. after Destination has been deleted) - if (pointToNavigate == null) { - MapActivity.getMapActions().stopNavigationWithoutConfirm(); - } - if(updateRoute && ( routingHelper.isRouteBeingCalculated() || routingHelper.isRouteCalculated() || routingHelper.isFollowingMode() || routingHelper.isRoutePlanningMode())) { updateRoutingHelper(); diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java index dbf41eeacd..8c5bdff6c9 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashboardOnMap.java @@ -1185,11 +1185,6 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks, DynamicLis newRouteIsCalculated(false, new ValueHolder()); getMyApplication().getTargetPointsHelper().updateRouteAndReferesh(true); - //Fix for Issue 2136(b), but see more global fix in TargetPointsHelper - //if (mapActivity.getMyApplication().getTargetPointsHelper().getPointToNavigate() == null) { - // mapActivity.getMapActions().stopNavigationWithoutConfirm(); - //} - if (swipeDismissListener != null) { swipeDismissListener.setEnabled(true); }