don`t ask location if not using current position

This commit is contained in:
veliymolfar 2020-06-04 11:41:48 +03:00
parent c49a7fb069
commit 7a20e37375
2 changed files with 0 additions and 2 deletions

View file

@ -448,7 +448,6 @@ public class AddPointBottomSheetDialog extends MenuBottomSheetDialogFragment {
break;
case TARGET:
targetPointsHelper.navigateToPoint(ll, true, -1, name);
OsmAndLocationProvider.requestFineLocationPermissionIfNeeded(mapActivity);
break;
case INTERMEDIATE:
targetPointsHelper.navigateToPoint(ll, true, targetPointsHelper.getIntermediatePoints().size(), name);

View file

@ -296,7 +296,6 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
break;
case TARGET:
targetPointsHelper.navigateToPoint(latLon, true, -1, pd);
OsmAndLocationProvider.requestFineLocationPermissionIfNeeded(mapActivity);
break;
case INTERMEDIATE:
targetPointsHelper.navigateToPoint(latLon, true, targetPointsHelper.getIntermediatePoints().size(), pd);