Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,14 @@ export class BottomNavigation extends TabNavigationBase {

_onAttachedToWindow(): void {
super._onAttachedToWindow();
this._attachedToWindow = true;

// _onAttachedToWindow called from OS again after it was detach
// TODO: Consider testing and removing it when update to androidx.fragment:1.2.0
if (this._manager && this._manager.isDestroyed()) {
return;
}


this._attachedToWindow = true;
this.changeTab(this.selectedIndex);
}

Expand Down
6 changes: 3 additions & 3 deletions nativescript-core/ui/frame/frame.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ export class Frame extends FrameBase {

_onAttachedToWindow(): void {
super._onAttachedToWindow();
this._attachedToWindow = true;


// _onAttachedToWindow called from OS again after it was detach
// TODO: Consider testing and removing it when update to androidx.fragment:1.2.0
if (this._manager && this._manager.isDestroyed()) {
return;
}


this._attachedToWindow = true;
this._processNextNavigationEntry();
}

Expand Down