Merge pull request #9140 from osmandapp/fix_8791
don`t ask location if not using current position
This commit is contained in:
commit
5afe3a90ad
2 changed files with 0 additions and 2 deletions
|
@ -448,7 +448,6 @@ public class AddPointBottomSheetDialog extends MenuBottomSheetDialogFragment {
|
||||||
break;
|
break;
|
||||||
case TARGET:
|
case TARGET:
|
||||||
targetPointsHelper.navigateToPoint(ll, true, -1, name);
|
targetPointsHelper.navigateToPoint(ll, true, -1, name);
|
||||||
OsmAndLocationProvider.requestFineLocationPermissionIfNeeded(mapActivity);
|
|
||||||
break;
|
break;
|
||||||
case INTERMEDIATE:
|
case INTERMEDIATE:
|
||||||
targetPointsHelper.navigateToPoint(ll, true, targetPointsHelper.getIntermediatePoints().size(), name);
|
targetPointsHelper.navigateToPoint(ll, true, targetPointsHelper.getIntermediatePoints().size(), name);
|
||||||
|
|
|
@ -294,7 +294,6 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
|
||||||
break;
|
break;
|
||||||
case TARGET:
|
case TARGET:
|
||||||
targetPointsHelper.navigateToPoint(latLon, true, -1, pd);
|
targetPointsHelper.navigateToPoint(latLon, true, -1, pd);
|
||||||
OsmAndLocationProvider.requestFineLocationPermissionIfNeeded(mapActivity);
|
|
||||||
break;
|
break;
|
||||||
case INTERMEDIATE:
|
case INTERMEDIATE:
|
||||||
targetPointsHelper.navigateToPoint(latLon, true, targetPointsHelper.getIntermediatePoints().size(), pd);
|
targetPointsHelper.navigateToPoint(latLon, true, targetPointsHelper.getIntermediatePoints().size(), pd);
|
||||||
|
|
Loading…
Reference in a new issue