fix(android): dont dispose fragment on onloaded (#8793)

This commit is contained in:
farfromrefuge
2021-08-11 20:28:55 +02:00
committed by Nathan Walker
parent d25cd5bcee
commit 2dd2970c7d

View File

@@ -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 {