fix comments

This commit is contained in:
sonora 2013-06-12 14:49:18 +02:00
parent c664cc0ead
commit 9150a53856
3 changed files with 2 additions and 6 deletions

View file

@ -801,17 +801,15 @@ public class MapActivityActions implements DialogProvider {
getDirections(loc, null, true);
}
} else if (standardId == R.string.context_menu_item_intermediate_point) {
// Issue 1929 TODO: insert navigatePointDialog, but without Directions:
// Issue 1929 TODO: go to navigatePointDialog, then to IntermediatePointDialog, but without Directions:
navigatePointDialogAndLaunchMap(mapActivity, latitude, longitude, null);
//targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size());
MapActivity.launchMapActivityMoveToTop(mapActivity);
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
// For button-less search UI
} else if (standardId == R.string.context_menu_item_destination_point) {
// Issue 1929 TODO: insert navigatePointDialog, but without Directions:
// Issue 1929 TODO: go to navigatePointDialog, then to IntermediatePointDialog, but without Directions:
navigatePointDialogAndLaunchMap(mapActivity, latitude, longitude, null);
//targets.navigateToPoint(new LatLon(latitude, longitude), true, -1);
MapActivity.launchMapActivityMoveToTop(mapActivity);
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
} else if (standardId == R.string.context_menu_item_share_location) {
shareLocation(latitude, longitude, mapActivity.getMapView().getZoom());

View file

@ -261,7 +261,6 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
} else if (mode == ADD_WAYPOINT) {
MapActivityActions.navigatePointDialogAndLaunchMap(getActivity(), lat, lon, getString(R.string.point_on_map, lat, lon));
// Issue 1929 TODO: show IntermediatePointsDialog now, but without subsequent Directions
MapActivity.launchMapActivityMoveToTop(getActivity());
} else if (mode == SHOW_ON_MAP){
OsmandApplication app = (OsmandApplication) getActivity().getApplication();
app.getSettings().setMapLocationToShow(lat, lon, Math.max(12, app.getSettings().getLastKnownMapZoom()),

View file

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