File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1212 "setup" : " ts-patch install" ,
1313 "prepare" : " npm run setup" ,
1414 "publish" : " npm run setup && npm run build.all && lerna publish --create-release=github --force-publish" ,
15+ "publish-major" : " npm run setup && npm run build.all && lerna publish major --create-release=github--force-publish" ,
1516 "publish-alpha" : " npm run setup && npm run build.all && lerna publish --create-release=github --canary --no-git-reset --dist-tag alpha --no-git-tag-version --no-push --force-publish" ,
1617 "build" : " lerna run build" ,
1718 "build.angular" : " lerna run build.angular" ,
Original file line number Diff line number Diff line change @@ -401,11 +401,9 @@ export class BottomNavigation extends TabNavigationBase {
401401
402402 // _onAttachedToWindow called from OS again after it was detach
403403 // still happens with androidx.fragment:1.3.2
404- const activity = Application . android . foregroundActivity ;
405- if (
406- ( this . _manager && this . _manager . isDestroyed ( ) ) ||
407- ( activity instanceof androidx . fragment . app . FragmentActivity && ! activity . getLifecycle ( ) . getCurrentState ( ) . isAtLeast ( androidx . lifecycle . Lifecycle . State . CREATED ) )
408- ) {
404+ const activity = Application . android . foregroundActivity || Application . android . startActivity ;
405+ const lifecycle = activity ?. getLifecycle ?.( ) . getCurrentState ( ) || androidx . lifecycle . Lifecycle . State . CREATED ;
406+ if ( ( this . _manager && this . _manager . isDestroyed ( ) ) || ( activity instanceof androidx . fragment . app . FragmentActivity && ! lifecycle . isAtLeast ( androidx . lifecycle . Lifecycle . State . CREATED ) ) ) {
409407 return ;
410408 }
411409
Original file line number Diff line number Diff line change @@ -512,11 +512,9 @@ export class Tabs extends TabsBase {
512512
513513 // _onAttachedToWindow called from OS again after it was detach
514514 // still happens with androidx.fragment:1.3.2
515- const activity = Application . android . foregroundActivity ;
516- if (
517- ( this . _manager && this . _manager . isDestroyed ( ) ) ||
518- ( activity instanceof androidx . fragment . app . FragmentActivity && ! activity . getLifecycle ( ) . getCurrentState ( ) . isAtLeast ( androidx . lifecycle . Lifecycle . State . CREATED ) )
519- ) {
515+ const activity = Application . android . foregroundActivity || Application . android . startActivity ;
516+ const lifecycle = activity ?. getLifecycle ?.( ) . getCurrentState ( ) || androidx . lifecycle . Lifecycle . State . CREATED ;
517+ if ( ( this . _manager && this . _manager . isDestroyed ( ) ) || ( activity instanceof androidx . fragment . app . FragmentActivity && ! lifecycle . isAtLeast ( androidx . lifecycle . Lifecycle . State . CREATED ) ) ) {
520518 return ;
521519 }
522520
You can’t perform that action at this time.
0 commit comments