mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
87e2691162
commit
1eaac0d4e4
|
@ -157,6 +157,8 @@ public class FragmentDialogBase extends DialogFragment {
|
|||
Log.i("Dialog key=" + targetRequestKey + " result=" + resultCode);
|
||||
if (targetRequestKey != null) {
|
||||
Bundle args = getArguments();
|
||||
if (args == null) // onDismiss
|
||||
args = new Bundle();
|
||||
args.putInt("requestCode", targetRequestCode);
|
||||
args.putInt("resultCode", resultCode);
|
||||
getParentFragmentManager().setFragmentResult(targetRequestKey, args);
|
||||
|
|
Loading…
Reference in New Issue