From 8f91e275d60db0c43357bdea51f2940d5db25b96 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Fri, 18 Aug 2017 12:35:23 +0300 Subject: [PATCH] Show all gpx in dialog when adding to track --- .../plus/measurementtool/MeasurementToolFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() {