mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
revert: fix(android): nested dialog/fragment handling (#9495)
This reverts commit 4c547bb00c554d35408c7d0c44ef46e237819132.
This commit is contained in:
@ -345,9 +345,6 @@ export class View extends ViewCommon {
|
||||
}
|
||||
|
||||
public _getFragmentManager(): androidx.fragment.app.FragmentManager {
|
||||
if ((<any>global)._dialogFragment) {
|
||||
return (<any>global)._dialogFragment.getChildFragmentManager();
|
||||
}
|
||||
let manager = this._manager;
|
||||
if (!manager) {
|
||||
let view: View = this;
|
||||
@ -693,19 +690,20 @@ export class View extends ViewCommon {
|
||||
};
|
||||
|
||||
saveModal(dialogOptions);
|
||||
|
||||
this._dialogFragment = df;
|
||||
(<any>global)._dialogFragment = df;
|
||||
this._raiseShowingModallyEvent();
|
||||
|
||||
this._dialogFragment.show(parent._getRootFragmentManager(), this._domId.toString());
|
||||
}
|
||||
|
||||
protected _hideNativeModalView(parent: View, whenClosedCallback: () => void) {
|
||||
const manager = this._dialogFragment.getParentFragmentManager();
|
||||
const manager = this._dialogFragment.getFragmentManager();
|
||||
if (manager) {
|
||||
this._dialogFragment.dismissAllowingStateLoss();
|
||||
}
|
||||
|
||||
this._dialogFragment = null;
|
||||
(<any>global)._dialogFragment = null;
|
||||
whenClosedCallback();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user