From 36e0b0aacb455b15b598d8824ea7d7bac3dfc5cd Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 13 Jun 2013 11:35:54 +0200 Subject: [PATCH] readfromSettings before displaying list --- OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index 565013246a..a3de7de996 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -805,12 +805,14 @@ public class MapActivityActions implements DialogProvider { //targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size()); int sz = targets.getIntermediatePoints().size(); settings.insertIntermediatePoint(latitude, longitude, "x", sz, false); //$NON-NLS-1$ + targets.updatePointsFromSettings(); IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity); // For button-less search UI } else if (standardId == R.string.context_menu_item_destination_point) { // Issue 1929: Consistently show IntermediatePointDialog, without subsequent Directions screen //targets.navigateToPoint(new LatLon(latitude, longitude), true, -1); settings.setPointToNavigate(latitude, longitude, false, "z"); //$NON-NLS-1$ + targets.updatePointsFromSettings(); IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity); } else if (standardId == R.string.context_menu_item_share_location) { shareLocation(latitude, longitude, mapActivity.getMapView().getZoom());