Show all gpx in dialog when adding to track

This commit is contained in:
PavelRatushny 2017-08-18 12:35:23 +03:00
parent 29f3b73066
commit 8f91e275d6

View file

@ -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<GPXFile[]> callbackWithObject = new CallbackWithObject<GPXFile[]>() {
@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() {