mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00
fix(android): dont dispose fragment on onloaded
rely on android logic
This commit is contained in:
@ -241,11 +241,6 @@ export class Frame extends FrameBase {
|
|||||||
|
|
||||||
onUnloaded() {
|
onUnloaded() {
|
||||||
super.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 {
|
private disposeCurrentFragment(): void {
|
||||||
|
Reference in New Issue
Block a user