Fix #4411
This commit is contained in:
parent
56107f82ba
commit
68c565bdef
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue