fix(android): dont dispose fragment on onloaded

rely on android logic
This commit is contained in:
Martin Guillon
2020-08-27 09:21:34 +02:00
parent 16c154e885
commit 3fbeacec41

View File

@ -241,11 +241,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 {