fix destination name when set via context menu directions
This commit is contained in:
parent
48a459e5ce
commit
b8d10f6217
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue