finish documentation for Issue 1929 UI flow
This commit is contained in:
parent
b72b8c2f10
commit
9966afebf0
3 changed files with 12 additions and 10 deletions
|
@ -801,15 +801,15 @@ public class MapActivityActions implements DialogProvider {
|
|||
getDirections(loc, null, true);
|
||||
}
|
||||
} else if (standardId == R.string.context_menu_item_intermediate_point) {
|
||||
// Issue 1929:
|
||||
navigatePointDialogAndLaunchMap(activity, latitude, longitude, null);
|
||||
//targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size());
|
||||
// TODO Issue 1929: insert navigatePointDialog, but without Directions
|
||||
//navigatePointDialogAndLaunchMap(activity, latitude, longitude, null);
|
||||
targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size());
|
||||
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
|
||||
// For button-less search UI
|
||||
} else if (standardId == R.string.context_menu_item_destination_point) {
|
||||
// Issue 1929:
|
||||
navigatePointDialogAndLaunchMap(activity, latitude, longitude, null);
|
||||
//targets.navigateToPoint(new LatLon(latitude, longitude), true, -1);
|
||||
// TODO Issue 1929: insert navigatePointDialog, but without Directions
|
||||
//navigatePointDialogAndLaunchMap(activity, latitude, longitude, null);
|
||||
targets.navigateToPoint(new LatLon(latitude, longitude), true, -1);
|
||||
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
|
||||
} else if (standardId == R.string.context_menu_item_share_location) {
|
||||
shareLocation(latitude, longitude, mapActivity.getMapView().getZoom());
|
||||
|
@ -1309,16 +1309,16 @@ public class MapActivityActions implements DialogProvider {
|
|||
settings.insertIntermediatePoint(lat, lon, name, 0, true);
|
||||
}
|
||||
targetPointsHelper.updatePointsFromSettings();
|
||||
// Issue 1929:
|
||||
//MapActivity.launchMapActivityMoveToTop(act);
|
||||
// TODO Issue 1929: slash next line (no Directions here)
|
||||
MapActivity.launchMapActivityMoveToTop(act);
|
||||
}
|
||||
});
|
||||
builder.show();
|
||||
} else {
|
||||
settings.setPointToNavigate(lat, lon, true, name);
|
||||
targetPointsHelper.updatePointsFromSettings();
|
||||
// Issue 1929:
|
||||
//MapActivity.launchMapActivityMoveToTop(act);
|
||||
// TODO Issue 1929: slash next line (no Directions here)
|
||||
MapActivity.launchMapActivityMoveToTop(act);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -260,6 +260,7 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
|
|||
MapActivity.launchMapActivityMoveToTop(getActivity());
|
||||
} else if (mode == ADD_WAYPOINT) {
|
||||
MapActivityActions.navigatePointDialogAndLaunchMap(getActivity(), lat, lon, getString(R.string.point_on_map, lat, lon));
|
||||
// TODO Issue 1929: show IntermediatePointsDialog now
|
||||
} else if (mode == SHOW_ON_MAP){
|
||||
OsmandApplication app = (OsmandApplication) getActivity().getApplication();
|
||||
app.getSettings().setMapLocationToShow(lat, lon, Math.max(12, app.getSettings().getLastKnownMapZoom()),
|
||||
|
|
|
@ -297,6 +297,7 @@ public class SearchAddressFragment extends SherlockFragment {
|
|||
MapActivity.launchMapActivityMoveToTop(getActivity());
|
||||
} else if (mode == ADD_WAYPOINT) {
|
||||
MapActivityActions.navigatePointDialogAndLaunchMap(getActivity(), searchPoint.getLatitude(), searchPoint.getLongitude(), historyName);
|
||||
// TODO Issue 1929: show IntermediatePointsDialog now
|
||||
} else if (mode == SHOW_ON_MAP) {
|
||||
osmandSettings.setMapLocationToShow(searchPoint.getLatitude(), searchPoint.getLongitude(), zoom, historyName);
|
||||
MapActivity.launchMapActivityMoveToTop(getActivity());
|
||||
|
|
Loading…
Reference in a new issue