Merge "Fix notifications disappearing when shade fully expands." into tm-dev am: 1a4f7b8bc3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18890946 Change-Id: I3f4934872c5e48427b6f5d41adedb65dcfffcbd1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -265,12 +265,12 @@ class NotificationWakeUpCoordinator @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onStateChanged(newState: Int) {
|
override fun onStateChanged(newState: Int) {
|
||||||
if (screenOffAnimationController.overrideNotificationsFullyDozingOnKeyguard() &&
|
if (state == StatusBarState.SHADE && newState == StatusBarState.SHADE) {
|
||||||
state == StatusBarState.KEYGUARD &&
|
// The SHADE -> SHADE transition is only possible as part of cancelling the screen-off
|
||||||
newState == StatusBarState.SHADE) {
|
// animation (e.g. by fingerprint unlock). This is done because the system is in an
|
||||||
// If we're animating the screen off and going from KEYGUARD back to SHADE, the
|
// undefined state, so it's an indication that we should do state cleanup. We override
|
||||||
// animation was cancelled and we are unlocking. Override the doze amount to 0f (not
|
// the doze amount to 0f (not dozing) so that the notifications are no longer hidden.
|
||||||
// dozing) so that the notifications are no longer hidden.
|
// See: UnlockedScreenOffAnimationController.onFinishedWakingUp()
|
||||||
setDozeAmount(0f, 0f)
|
setDozeAmount(0f, 0f)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user