Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt +18 −9 Original line number Diff line number Diff line Loading @@ -484,19 +484,28 @@ constructor( } fun keyguardAlpha(viewState: ViewStateAccessor, scope: CoroutineScope): Flow<Float> { // Transitions are not (yet) authoritative for NSSL; they still rely on StatusBarState to // help determine when the device has fully moved to GONE or OCCLUDED state. Once SHADE // state has been set, let shade alpha take over val isKeyguardNotVisible = combine( val isKeyguardOccluded = keyguardTransitionInteractor.transitionValue(OCCLUDED).map { it == 1f } val isKeyguardNotVisibleInState = if (SceneContainerFlag.isEnabled) { isKeyguardOccluded } else { anyOf( keyguardTransitionInteractor.transitionValue(OCCLUDED).map { it == 1f }, isKeyguardOccluded, keyguardTransitionInteractor .transitionValue(scene = Scenes.Gone, stateWithoutSceneContainer = GONE) .map { it == 1f }, ), keyguardInteractor.statusBarState, ) { isKeyguardNotVisibleInState, statusBarState -> ) } // Transitions are not (yet) authoritative for NSSL; they still rely on StatusBarState to // help determine when the device has fully moved to GONE or OCCLUDED state. Once SHADE // state has been set, let shade alpha take over val isKeyguardNotVisible = combine(isKeyguardNotVisibleInState, keyguardInteractor.statusBarState) { isKeyguardNotVisibleInState, statusBarState -> isKeyguardNotVisibleInState && statusBarState == SHADE } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/SharedNotificationContainerViewModel.kt +18 −9 Original line number Diff line number Diff line Loading @@ -484,19 +484,28 @@ constructor( } fun keyguardAlpha(viewState: ViewStateAccessor, scope: CoroutineScope): Flow<Float> { // Transitions are not (yet) authoritative for NSSL; they still rely on StatusBarState to // help determine when the device has fully moved to GONE or OCCLUDED state. Once SHADE // state has been set, let shade alpha take over val isKeyguardNotVisible = combine( val isKeyguardOccluded = keyguardTransitionInteractor.transitionValue(OCCLUDED).map { it == 1f } val isKeyguardNotVisibleInState = if (SceneContainerFlag.isEnabled) { isKeyguardOccluded } else { anyOf( keyguardTransitionInteractor.transitionValue(OCCLUDED).map { it == 1f }, isKeyguardOccluded, keyguardTransitionInteractor .transitionValue(scene = Scenes.Gone, stateWithoutSceneContainer = GONE) .map { it == 1f }, ), keyguardInteractor.statusBarState, ) { isKeyguardNotVisibleInState, statusBarState -> ) } // Transitions are not (yet) authoritative for NSSL; they still rely on StatusBarState to // help determine when the device has fully moved to GONE or OCCLUDED state. Once SHADE // state has been set, let shade alpha take over val isKeyguardNotVisible = combine(isKeyguardNotVisibleInState, keyguardInteractor.statusBarState) { isKeyguardNotVisibleInState, statusBarState -> isKeyguardNotVisibleInState && statusBarState == SHADE } Loading