Prevent crash

This commit is contained in:
M66B 2023-01-16 19:23:38 +01:00
parent bb2dac7b66
commit b7e7c8e988
1 changed files with 9 additions and 0 deletions

View File

@ -177,6 +177,15 @@ public class FragmentDialogBase extends DialogFragment {
}
}
@Override
public void dismiss() {
try {
super.dismiss();
} catch (Throwable ex) {
Log.e(ex);
}
}
@Override
public void onDismiss(@NonNull DialogInterface dialog) {
sendResult(RESULT_CANCELED);