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 12
12
"setup" : " ts-patch install" ,
13
13
"prepare" : " npm run setup" ,
14
14
"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" ,
15
16
"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" ,
16
17
"build" : " lerna run build" ,
17
18
"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 {
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 ;
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 ) ) ) {
409
407
return ;
410
408
}
411
409
Original file line number Diff line number Diff line change @@ -512,11 +512,9 @@ 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 ;
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 ) ) ) {
520
518
return ;
521
519
}
522
520
You can’t perform that action at this time.
0 commit comments