★ wanayoo — archive 1999 https://github.com/NativeScript/NativeScript/commit/03b77157eac1f9d67b6fcadca1123987dc18bedaNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
fix(android): dont dispose fragment on onloaded (#8793)
  • Loading branch information
farfromrefug committed Aug 11, 2021
1 parent 4964d31 commit 03b77157eac1f9d67b6fcadca1123987dc18beda
Showing with 0 additions and 5 deletions.
  1. +0 −5 packages/core/ui/frame/index.android.ts
@@ -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 {

0 comments on commit 03b7715

Please sign in to comment.