insert comments
This commit is contained in:
parent
a27ff2562a
commit
c9fd44f16e
3 changed files with 17 additions and 17 deletions
|
@ -1269,7 +1269,7 @@ public class MapActivityActions implements DialogProvider {
|
||||||
if (onShow != null) {
|
if (onShow != null) {
|
||||||
onShow.onClick(v);
|
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);
|
navigatePointDialogAndLaunchMap(activity, location.getLatitude(), location.getLongitude(), name);
|
||||||
qa.dismiss();
|
qa.dismiss();
|
||||||
}
|
}
|
||||||
|
|
|
@ -259,15 +259,15 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
|
||||||
targetPointsHelper.setSingleDestination(lat, lon, getString(R.string.point_on_map, lat, lon));
|
targetPointsHelper.setSingleDestination(lat, lon, getString(R.string.point_on_map, lat, lon));
|
||||||
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));
|
||||||
// Issue 1929 TODO: show IntermediatePointsDialog here instead of navigatePointDialog, without subsequent Directions
|
// Issue 1929 TODO: show IntermediatePointsDialog here instead of navigatePointDialog, without subsequent Directions
|
||||||
if (targetPointsHelper.getIntermediatePoints().size() == 0) {
|
//if (targetPointsHelper.getIntermediatePoints().size() == 0) {
|
||||||
targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, -1);
|
// targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, -1);
|
||||||
} else {
|
//} else {
|
||||||
targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, targetPointsHelper.getIntermediatePoints().size());
|
// targetPointsHelper.navigateToPoint(new LatLon(lat, lon), true, targetPointsHelper.getIntermediatePoints().size());
|
||||||
}
|
//}
|
||||||
IntermediatePointsDialog.openIntermediatePointsDialog(getActivity());
|
//IntermediatePointsDialog.openIntermediatePointsDialog(getActivity());
|
||||||
MapActivity.launchMapActivityMoveToTop(getActivity());
|
//MapActivity.launchMapActivityMoveToTop(getActivity());
|
||||||
} 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()),
|
||||||
|
|
|
@ -297,15 +297,15 @@ public class SearchAddressFragment extends SherlockFragment {
|
||||||
targetPointsHelper.setSingleDestination(searchPoint.getLatitude(), searchPoint.getLongitude(), historyName);
|
targetPointsHelper.setSingleDestination(searchPoint.getLatitude(), searchPoint.getLongitude(), historyName);
|
||||||
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);
|
||||||
// Issue 1929 TODO: show IntermediatePointsDialog here instead of navigatePointDialog, without subsequent Directions
|
// Issue 1929 TODO: show IntermediatePointsDialog here instead of navigatePointDialog, without subsequent Directions
|
||||||
if (targetPointsHelper.getIntermediatePoints().size() == 0) {
|
//if (targetPointsHelper.getIntermediatePoints().size() == 0) {
|
||||||
targetPointsHelper.navigateToPoint(searchPoint, true, -1);
|
// targetPointsHelper.navigateToPoint(searchPoint, true, -1);
|
||||||
} else {
|
//} else {
|
||||||
targetPointsHelper.navigateToPoint(searchPoint, true, targetPointsHelper.getIntermediatePoints().size());
|
// targetPointsHelper.navigateToPoint(searchPoint, true, targetPointsHelper.getIntermediatePoints().size());
|
||||||
}
|
//}
|
||||||
IntermediatePointsDialog.openIntermediatePointsDialog(getActivity());
|
//IntermediatePointsDialog.openIntermediatePointsDialog(getActivity());
|
||||||
MapActivity.launchMapActivityMoveToTop(getActivity());
|
//MapActivity.launchMapActivityMoveToTop(getActivity());
|
||||||
} 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());
|
||||||
|
|
Loading…
Reference in a new issue