Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0b7a04d authored by Lucas Dupin's avatar Lucas Dupin
Browse files

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
parent adf530fc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)