fix destination name when set via context menu directions

This commit is contained in:
sonora 2013-06-13 22:53:53 +02:00
parent 48a459e5ce
commit b8d10f6217

View file

@ -788,7 +788,9 @@ public class MapActivityActions implements DialogProvider {
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
mapActivity.startActivity(intent);
} else if (standardId == R.string.context_menu_item_navigate_point) {
getMyApplication().getTargetPointsHelper().navigateToPoint(new LatLon(latitude, longitude), true, -1);
//getMyApplication().getTargetPointsHelper().navigateToPoint(new LatLon(latitude, longitude), true, -1);
settings.setPointToNavigate(latitude, longitude, true, mapActivity.getResources().getString(R.string.point_on_map, latitude, longitude));
targets.updatePointsFromSettings();
// always enable and follow and let calculate it (GPS is not accessible in garage)
if(!routingHelper.isRouteBeingCalculated() && !routingHelper.isRouteCalculated() ) {
getDirections(null, new LatLon(latitude, longitude), true);