diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java index b82c9faecc..7cfff7d87a 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java @@ -560,7 +560,7 @@ public class MeasurementToolFragment extends Fragment { public void addToTheTrackOnClick() { if (mapActivity != null && measurementLayer != null) { if (measurementLayer.getPointsCount() > 0) { - showAddSegmentDialog(mapActivity); + showAddToTrackDialog(mapActivity); } else { Toast.makeText(mapActivity, getString(R.string.none_point_error), Toast.LENGTH_SHORT).show(); } @@ -809,7 +809,7 @@ public class MeasurementToolFragment extends Fragment { fragment.show(mapActivity.getSupportFragmentManager(), SaveAsNewTrackBottomSheetDialogFragment.TAG); } - private AlertDialog showAddSegmentDialog(final MapActivity mapActivity) { + private AlertDialog showAddToTrackDialog(final MapActivity mapActivity) { CallbackWithObject callbackWithObject = new CallbackWithObject() { @Override public boolean processResult(GPXFile[] result) { @@ -824,7 +824,7 @@ public class MeasurementToolFragment extends Fragment { } }; - return GpxUiHelper.selectSingleGPXFile(mapActivity, false, callbackWithObject); + return GpxUiHelper.selectGPXFile(mapActivity, false, false, callbackWithObject); } private void applyMovePointMode() {