Do not blur shade while fading away

The shade will become expanded during face-auth when the keyguard is
going away. We need to ignore event until the keyguard is gone.

Test: unlock with face auth, from lock screen
Fixes: 153559173
Change-Id: If0db37bf22bef22ea3feab52ead6c6020a5a89dc
This commit is contained in:
Lucas Dupin
2020-04-15 12:23:26 -07:00
parent adf530fc26
commit b0b7a04d2a

View File

@@ -250,7 +250,8 @@ class NotificationShadeDepthController @Inject constructor(
private fun updateShadeBlur() {
var newBlur = 0
val state = statusBarStateController.state
if (state == StatusBarState.SHADE || state == StatusBarState.SHADE_LOCKED) {
if ((state == StatusBarState.SHADE || state == StatusBarState.SHADE_LOCKED) &&
!keyguardStateController.isKeyguardFadingAway) {
newBlur = blurUtils.blurRadiusOfRatio(shadeExpansion)
}
shadeSpring.animateTo(newBlur)