mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): android fix for tabview error on unload
This commit is contained in:
@@ -553,9 +553,10 @@ export class TabView extends TabViewBase {
|
||||
}
|
||||
|
||||
public onUnloaded(): void {
|
||||
super.onUnloaded();
|
||||
|
||||
// clear fragments before calling super to ensure the fragmentManager is the
|
||||
// same as the one used during item instantiation
|
||||
this.setAdapterItems(null);
|
||||
super.onUnloaded();
|
||||
}
|
||||
|
||||
public disposeNativeView() {
|
||||
|
||||
Reference in New Issue
Block a user