readfromSettings before displaying list
This commit is contained in:
parent
ab71c5cabe
commit
36e0b0aacb
1 changed files with 2 additions and 0 deletions
|
@ -805,12 +805,14 @@ public class MapActivityActions implements DialogProvider {
|
||||||
//targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size());
|
//targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size());
|
||||||
int sz = targets.getIntermediatePoints().size();
|
int sz = targets.getIntermediatePoints().size();
|
||||||
settings.insertIntermediatePoint(latitude, longitude, "x", sz, false); //$NON-NLS-1$
|
settings.insertIntermediatePoint(latitude, longitude, "x", sz, false); //$NON-NLS-1$
|
||||||
|
targets.updatePointsFromSettings();
|
||||||
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
|
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
|
||||||
// For button-less search UI
|
// For button-less search UI
|
||||||
} else if (standardId == R.string.context_menu_item_destination_point) {
|
} else if (standardId == R.string.context_menu_item_destination_point) {
|
||||||
// Issue 1929: Consistently show IntermediatePointDialog, without subsequent Directions screen
|
// Issue 1929: Consistently show IntermediatePointDialog, without subsequent Directions screen
|
||||||
//targets.navigateToPoint(new LatLon(latitude, longitude), true, -1);
|
//targets.navigateToPoint(new LatLon(latitude, longitude), true, -1);
|
||||||
settings.setPointToNavigate(latitude, longitude, false, "z"); //$NON-NLS-1$
|
settings.setPointToNavigate(latitude, longitude, false, "z"); //$NON-NLS-1$
|
||||||
|
targets.updatePointsFromSettings();
|
||||||
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
|
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
|
||||||
} else if (standardId == R.string.context_menu_item_share_location) {
|
} else if (standardId == R.string.context_menu_item_share_location) {
|
||||||
shareLocation(latitude, longitude, mapActivity.getMapView().getZoom());
|
shareLocation(latitude, longitude, mapActivity.getMapView().getZoom());
|
||||||
|
|
Loading…
Reference in a new issue