Merge pull request #4420 from osmandapp/measurement_tool_fix

Fix #4411
This commit is contained in:
vshcherb 2017-09-11 19:36:20 +03:00 committed by GitHub
commit 2b0f264851

View file

@ -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);
}
});
}