fix getString

This commit is contained in:
sonora 2013-06-13 19:09:50 +02:00
parent 9de011be82
commit ed5db788dc

View file

@ -805,8 +805,7 @@ public class MapActivityActions implements DialogProvider {
//targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size()); //targets.navigateToPoint(new LatLon(latitude, longitude), true, targets.getIntermediatePoints().size());
int sz = targets.getIntermediatePoints().size(); int sz = targets.getIntermediatePoints().size();
// TODO: enhance next statement to transmit getSelectedObjectName for clicked objects like favorites instead of just coordinates // TODO: enhance next statement to transmit getSelectedObjectName for clicked objects like favorites instead of just coordinates
//settings.insertIntermediatePoint(latitude, longitude, getString(R.string.point_on_map, latitude, longitude), sz, false); settings.insertIntermediatePoint(latitude, longitude, mapActivity.getResources().getString(R.string.point_on_map, latitude, longitude), sz, false);
settings.insertIntermediatePoint(latitude, longitude, "x", sz, false); //$NON-NLS-1$
targets.updatePointsFromSettings(); targets.updatePointsFromSettings();
IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity); IntermediatePointsDialog.openIntermediatePointsDialog(mapActivity);
// For button-less search UI // For button-less search UI
@ -814,8 +813,7 @@ public class MapActivityActions implements DialogProvider {
// Issue 1929: Consistently show IntermediatePointDialog, without subsequent Directions screen // Issue 1929: Consistently show IntermediatePointDialog, without subsequent Directions screen
//targets.navigateToPoint(new LatLon(latitude, longitude), true, -1); //targets.navigateToPoint(new LatLon(latitude, longitude), true, -1);
// TODO: enhance next statement to transmit getSelectedObjectName for clicked objects like favorites instead of just coordinates // TODO: enhance next statement to transmit getSelectedObjectName for clicked objects like favorites instead of just coordinates
//settings.setPointToNavigate(latitude, longitude, false, getString(R.string.point_on_map, latitude, longitude)); settings.setPointToNavigate(latitude, longitude, false, mapActivity.getResources().getString(R.string.point_on_map, latitude, longitude));
settings.setPointToNavigate(latitude, longitude, false, "z"); //$NON-NLS-1$
targets.updatePointsFromSettings(); targets.updatePointsFromSettings();
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) {