commit
2b0f264851
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() {
|
builder.setPositiveButton(R.string.shared_string_ok, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialogInterface, int i) {
|
public void onClick(DialogInterface dialogInterface, int i) {
|
||||||
GPXFile gpx = editingCtx.getNewGpxData().getGpxFile();
|
dismiss(mapActivity);
|
||||||
SelectedGpxFile selectedGpxFile = mapActivity.getMyApplication().getSelectedGpxHelper().getSelectedFileByPath(gpx.path);
|
|
||||||
boolean showOnMap = selectedGpxFile != null;
|
|
||||||
ActionType actionType = editingCtx.getNewGpxData().getActionType();
|
|
||||||
saveExistingGpx(gpx, showOnMap, actionType, true);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue