mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): android fix for entry cleared too late
This commit is contained in:
@@ -501,8 +501,9 @@ export class Frame extends FrameBase {
|
||||
const manager: androidx.fragment.app.FragmentManager = this._getFragmentManager();
|
||||
const transaction = manager.beginTransaction();
|
||||
transaction.remove(removed.fragment);
|
||||
transaction.commitNowAllowingStateLoss();
|
||||
// clear entry before commit because commit now will release the fragment right away
|
||||
_clearEntry(removed);
|
||||
transaction.commitNowAllowingStateLoss();
|
||||
}
|
||||
|
||||
removed.fragment = null;
|
||||
|
||||
Reference in New Issue
Block a user