mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): dont dispose fragment on onloaded (#8793)
This commit is contained in:
committed by
Nathan Walker
parent
d25cd5bcee
commit
2dd2970c7d
@@ -242,11 +242,6 @@ export class Frame extends FrameBase {
|
||||
|
||||
onUnloaded() {
|
||||
super.onUnloaded();
|
||||
|
||||
// calling dispose fragment after super.onUnloaded() means we are not relying on the built-in Android logic
|
||||
// to automatically remove child fragments when parent fragment is removed;
|
||||
// this fixes issue with missing nested fragment on app suspend / resume;
|
||||
this.disposeCurrentFragment();
|
||||
}
|
||||
|
||||
private disposeCurrentFragment(): void {
|
||||
|
||||
Reference in New Issue
Block a user