Skip to content

Commit ada3d17

Browse files
committed
fix(bottom-navigation): android correctly load/unload items (fixes issues with inner frames)
1 parent d0e3ac0 commit ada3d17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bottom-navigation/index.android.ts

+2
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ export class BottomNavigation extends TabNavigationBase {
530530
this.fragments.push(fragment);
531531
this.attachFragment(fragment, container.getId(), name);
532532
}
533+
this.items[position].callLoaded();
533534

534535
// if (fragment !== this._currentFragment) {
535536
// fragment.setMenuVisibility(false);
@@ -579,6 +580,7 @@ export class BottomNavigation extends TabNavigationBase {
579580
if (this.items && this.items[position]) {
580581
this.items[position].canBeLoaded = false;
581582
}
583+
this.items[position].callUnloaded();
582584
}
583585
private hideFragment(fragment: androidx.fragment.app.Fragment, fragmentManager?: any) {
584586
if (!fragmentManager) {

0 commit comments

Comments
 (0)