insert comments

This commit is contained in:
sonora 2013-06-13 01:37:19 +02:00
parent a27ff2562a
commit c9fd44f16e
3 changed files with 17 additions and 17 deletions

View file

@ -1269,7 +1269,7 @@ public class MapActivityActions implements DialogProvider {
if (onShow != null) {
onShow.onClick(v);
}
// Issue 1929: Check where this dialohue appears and replace by IntermediatePointsDialog
// Issue 1929 TODO: Check where this dialogue appears and replace by IntermediatePointsDialog
navigatePointDialogAndLaunchMap(activity, location.getLatitude(), location.getLongitude(), name);
qa.dismiss();
}

View file

@ -259,15 +259,15 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
targetPointsHelper.setSingleDestination(lat, lon, getString(R.string.point_on_map, lat, lon));
MapActivity.launchMapActivityMoveToTop(getActivity());
} 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));
// Issue 1929 TODO: show IntermediatePointsDialog here instead of navigatePointDialog, without subsequent Directions
if (targetPointsHelper.getIntermediatePoints().size() == 0) {
targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, -1);
} else {
targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, targetPointsHelper.getIntermediatePoints().size());
}
IntermediatePointsDialog.openIntermediatePointsDialog(getActivity());
MapActivity.launchMapActivityMoveToTop(getActivity());
//if (targetPointsHelper.getIntermediatePoints().size() == 0) {
// targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, -1);
//} else {
// targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, targetPointsHelper.getIntermediatePoints().size());
//}
//IntermediatePointsDialog.openIntermediatePointsDialog(getActivity());
//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

@ -297,15 +297,15 @@ public class SearchAddressFragment extends SherlockFragment {
targetPointsHelper.setSingleDestination(searchPoint.getLatitude(), searchPoint.getLongitude(), historyName);
MapActivity.launchMapActivityMoveToTop(getActivity());
} else if (mode == ADD_WAYPOINT) {
//MapActivityActions.navigatePointDialogAndLaunchMap(getActivity(), searchPoint.getLatitude(), searchPoint.getLongitude(), historyName);
MapActivityActions.navigatePointDialogAndLaunchMap(getActivity(), searchPoint.getLatitude(), searchPoint.getLongitude(), historyName);
// Issue 1929 TODO: show IntermediatePointsDialog here instead of navigatePointDialog, without subsequent Directions
if (targetPointsHelper.getIntermediatePoints().size() == 0) {
targetPointsHelper.navigateToPoint(searchPoint, true, -1);
} else {
targetPointsHelper.navigateToPoint(searchPoint, true, targetPointsHelper.getIntermediatePoints().size());
}
IntermediatePointsDialog.openIntermediatePointsDialog(getActivity());
MapActivity.launchMapActivityMoveToTop(getActivity());
//if (targetPointsHelper.getIntermediatePoints().size() == 0) {
// targetPointsHelper.navigateToPoint(searchPoint, true, -1);
//} else {
// targetPointsHelper.navigateToPoint(searchPoint, true, targetPointsHelper.getIntermediatePoints().size());
//}
//IntermediatePointsDialog.openIntermediatePointsDialog(getActivity());
//MapActivity.launchMapActivityMoveToTop(getActivity());
} else if (mode == SHOW_ON_MAP) {
osmandSettings.setMapLocationToShow(searchPoint.getLatitude(), searchPoint.getLongitude(), zoom, historyName);
MapActivity.launchMapActivityMoveToTop(getActivity());