finish documentation for Issue 1929 UI flow

This commit is contained in:
sonora 2013-06-12 12:27:53 +02:00
parent b72b8c2f10
commit 9966afebf0
3 changed files with 12 additions and 10 deletions

View file

@ -801,15 +801,15 @@ public class MapActivityActions implements DialogProvider {
getDirections(loc, null, true); getDirections(loc, null, true);
} }
} else if (standardId == R.string.context_menu_item_intermediate_point) { } else if (standardId == R.string.context_menu_item_intermediate_point) {
// Issue 1929: // TODO Issue 1929: insert navigatePointDialog, but without Directions
navigatePointDialogAndLaunchMap(activity, latitude, longitude, null); //navigatePointDialogAndLaunchMap(activity, latitude, longitude, null);
//targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size()); targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size());
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: // TODO Issue 1929: insert navigatePointDialog, but without Directions
navigatePointDialogAndLaunchMap(activity, latitude, longitude, null); //navigatePointDialogAndLaunchMap(activity, latitude, longitude, null);
//targets.navigateToPoint(new LatLon(latitude, longitude), true, -1); targets.navigateToPoint(new LatLon(latitude, longitude), true, -1);
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());
@ -1309,16 +1309,16 @@ public class MapActivityActions implements DialogProvider {
settings.insertIntermediatePoint(lat, lon, name, 0, true); settings.insertIntermediatePoint(lat, lon, name, 0, true);
} }
targetPointsHelper.updatePointsFromSettings(); targetPointsHelper.updatePointsFromSettings();
// Issue 1929: // TODO Issue 1929: slash next line (no Directions here)
//MapActivity.launchMapActivityMoveToTop(act); MapActivity.launchMapActivityMoveToTop(act);
} }
}); });
builder.show(); builder.show();
} else { } else {
settings.setPointToNavigate(lat, lon, true, name); settings.setPointToNavigate(lat, lon, true, name);
targetPointsHelper.updatePointsFromSettings(); targetPointsHelper.updatePointsFromSettings();
// Issue 1929: // TODO Issue 1929: slash next line (no Directions here)
//MapActivity.launchMapActivityMoveToTop(act); MapActivity.launchMapActivityMoveToTop(act);
} }
} }

View file

@ -260,6 +260,7 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
MapActivity.launchMapActivityMoveToTop(getActivity()); MapActivity.launchMapActivityMoveToTop(getActivity());
} else if (mode == ADD_WAYPOINT) { } else if (mode == ADD_WAYPOINT) {
MapActivityActions.navigatePointDialogAndLaunchMap(getActivity(), lat, lon, getString(R.string.point_on_map, lat, lon)); 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){ } else if (mode == SHOW_ON_MAP){
OsmandApplication app = (OsmandApplication) getActivity().getApplication(); OsmandApplication app = (OsmandApplication) getActivity().getApplication();
app.getSettings().setMapLocationToShow(lat, lon, Math.max(12, app.getSettings().getLastKnownMapZoom()), app.getSettings().setMapLocationToShow(lat, lon, Math.max(12, app.getSettings().getLastKnownMapZoom()),

View file

@ -297,6 +297,7 @@ public class SearchAddressFragment extends SherlockFragment {
MapActivity.launchMapActivityMoveToTop(getActivity()); MapActivity.launchMapActivityMoveToTop(getActivity());
} else if (mode == ADD_WAYPOINT) { } else if (mode == ADD_WAYPOINT) {
MapActivityActions.navigatePointDialogAndLaunchMap(getActivity(), searchPoint.getLatitude(), searchPoint.getLongitude(), historyName); MapActivityActions.navigatePointDialogAndLaunchMap(getActivity(), searchPoint.getLatitude(), searchPoint.getLongitude(), historyName);
// TODO Issue 1929: show IntermediatePointsDialog now
} else if (mode == SHOW_ON_MAP) { } else if (mode == SHOW_ON_MAP) {
osmandSettings.setMapLocationToShow(searchPoint.getLatitude(), searchPoint.getLongitude(), zoom, historyName); osmandSettings.setMapLocationToShow(searchPoint.getLatitude(), searchPoint.getLongitude(), zoom, historyName);
MapActivity.launchMapActivityMoveToTop(getActivity()); MapActivity.launchMapActivityMoveToTop(getActivity());