Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationWakeUpCoordinator.kt +5 −0 Original line number Diff line number Diff line Loading @@ -393,6 +393,11 @@ class NotificationWakeUpCoordinator @Inject constructor( override fun onDozingChanged(isDozing: Boolean) { if (isDozing) { setNotificationsVisible(visible = false, animate = false, increaseSpeed = false) } else { // We only unset the flag once we fully went asleep. If the user interrupts the // animation in the middle, we have to abort the animation as well to make sure // the notifications are visible again. animatingScreenOff = false } } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +7 −1 Original line number Diff line number Diff line Loading @@ -3615,10 +3615,16 @@ public class StatusBar extends SystemUI implements DemoMode, boolean visibleNotOccluded = mStatusBarKeyguardViewManager.isShowing() && !mStatusBarKeyguardViewManager.isOccluded(); // If we're dozing and we'll be animating the screen off, the keyguard isn't currently // visible but will be shortly for the animation, so we should proceed as if it's visible. boolean visibleNotOccludedOrWillBe = visibleNotOccluded || (mDozing && mDozeParameters.shouldControlUnlockedScreenOff()); boolean wakeAndUnlock = mBiometricUnlockController.getMode() == BiometricUnlockController.MODE_WAKE_AND_UNLOCK; boolean animate = (!mDozing && mDozeServiceHost.shouldAnimateWakeup() && !wakeAndUnlock) || (mDozing && mDozeServiceHost.shouldAnimateScreenOff() && visibleNotOccluded); || (mDozing && mDozeServiceHost.shouldAnimateScreenOff() && visibleNotOccludedOrWillBe); mNotificationPanelViewController.setDozing(mDozing, animate, mWakeUpTouchLocation); updateQsExpansionEnabled(); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationWakeUpCoordinator.kt +5 −0 Original line number Diff line number Diff line Loading @@ -393,6 +393,11 @@ class NotificationWakeUpCoordinator @Inject constructor( override fun onDozingChanged(isDozing: Boolean) { if (isDozing) { setNotificationsVisible(visible = false, animate = false, increaseSpeed = false) } else { // We only unset the flag once we fully went asleep. If the user interrupts the // animation in the middle, we have to abort the animation as well to make sure // the notifications are visible again. animatingScreenOff = false } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +7 −1 Original line number Diff line number Diff line Loading @@ -3615,10 +3615,16 @@ public class StatusBar extends SystemUI implements DemoMode, boolean visibleNotOccluded = mStatusBarKeyguardViewManager.isShowing() && !mStatusBarKeyguardViewManager.isOccluded(); // If we're dozing and we'll be animating the screen off, the keyguard isn't currently // visible but will be shortly for the animation, so we should proceed as if it's visible. boolean visibleNotOccludedOrWillBe = visibleNotOccluded || (mDozing && mDozeParameters.shouldControlUnlockedScreenOff()); boolean wakeAndUnlock = mBiometricUnlockController.getMode() == BiometricUnlockController.MODE_WAKE_AND_UNLOCK; boolean animate = (!mDozing && mDozeServiceHost.shouldAnimateWakeup() && !wakeAndUnlock) || (mDozing && mDozeServiceHost.shouldAnimateScreenOff() && visibleNotOccluded); || (mDozing && mDozeServiceHost.shouldAnimateScreenOff() && visibleNotOccludedOrWillBe); mNotificationPanelViewController.setDozing(mDozing, animate, mWakeUpTouchLocation); updateQsExpansionEnabled(); Loading