File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ export class BottomNavigation extends TabNavigationBase {
401
401
402
402
// _onAttachedToWindow called from OS again after it was detach
403
403
// still happens with androidx.fragment:1.3.2
404
- const activity = Application . android . foregroundActivity ;
404
+ const activity = Application . android . startActivity ;
405
405
if ( ( this . _manager && this . _manager . isDestroyed ( ) ) || ! activity . getLifecycle ?.( ) . getCurrentState ( ) . isAtLeast ( androidx . lifecycle . Lifecycle . State . STARTED ) ) {
406
406
return ;
407
407
}
Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ export class Tabs extends TabsBase {
512
512
513
513
// _onAttachedToWindow called from OS again after it was detach
514
514
// still happens with androidx.fragment:1.3.2
515
- const activity = Application . android . foregroundActivity ;
515
+ const activity = Application . android . startActivity ;
516
516
if ( ( this . _manager && this . _manager . isDestroyed ( ) ) || ! activity . getLifecycle ?.( ) . getCurrentState ( ) . isAtLeast ( androidx . lifecycle . Lifecycle . State . STARTED ) ) {
517
517
return ;
518
518
}
You can’t perform that action at this time.
0 commit comments