fix(core): android fix for transitions not starting

This commit is contained in:
Martin Guillon
2022-01-29 17:46:34 +01:00
parent ccb7c902c7
commit 7e5314ef37

View File

@@ -448,7 +448,7 @@ export class Frame extends FrameBase {
if (this._currentEntry && this._currentEntry.entry.backstackVisible === false) {
transaction.remove(this._currentEntry.fragment);
}
transaction.commitAllowingStateLoss();
transaction.commitNowAllowingStateLoss();
}
public _goBackCore(backstackEntry: BackstackEntry) {
@@ -490,7 +490,7 @@ export class Frame extends FrameBase {
transaction.hide(this._currentEntry.fragment);
}
transaction.commitAllowingStateLoss();
transaction.commitNowAllowingStateLoss();
}
public _removeEntry(removed: BackstackEntry): void {
@@ -501,7 +501,7 @@ export class Frame extends FrameBase {
const manager: androidx.fragment.app.FragmentManager = this._getFragmentManager();
const transaction = manager.beginTransaction();
transaction.remove(removed.fragment);
transaction.commitAllowingStateLoss();
transaction.commitNowAllowingStateLoss();
_clearEntry(removed);
}