diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java index f6f3919065..c19dc9817d 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java @@ -1435,11 +1435,7 @@ public class MeasurementToolFragment extends Fragment { builder.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { - GPXFile gpx = editingCtx.getNewGpxData().getGpxFile(); - SelectedGpxFile selectedGpxFile = mapActivity.getMyApplication().getSelectedGpxHelper().getSelectedFileByPath(gpx.path); - boolean showOnMap = selectedGpxFile != null; - ActionType actionType = editingCtx.getNewGpxData().getActionType(); - saveExistingGpx(gpx, showOnMap, actionType, true); + dismiss(mapActivity); } }); }