fix: check is disposed fragment is in the FragmentManager (#8201)

This commit is contained in:
Alexander Vakrilov
2019-12-17 12:04:32 +02:00
committed by GitHub
parent d1858f81b7
commit 4b00376957
3 changed files with 15 additions and 10 deletions

View File

@@ -155,6 +155,8 @@ function initializeDialogFragment() {
const ownerId = this.getArguments().getInt(DOMID);
const options = getModalOptions(ownerId);
this.owner = options.owner;
// Set owner._dialogFragment to this in case the DialogFragment was recreated after app suspend
this.owner._dialogFragment = this;
this._fullscreen = options.fullscreen;
this._animated = options.animated;
this._cancelable = options.cancelable;