From ceb7010da6a5c0301b506ef43da93ba785f52901 Mon Sep 17 00:00:00 2001 From: Justin Weir Date: Mon, 3 Apr 2023 15:39:40 -0400 Subject: Ensure scrim visibility updated by mPrimaryBouncerToGoneTransition This was a race condition where the back scrim was not getting to alpha=zero in time for the last scrim visibility update, so it was keeping the window up (which then ate the touches). The fix is to add an insurance scrim visibility update at the end of the fade-in. Test: ran all atest tests Test: manually verified that the breaking condition occurred but was mitigated Fixes: 273998188 Change-Id: I2986c82b3c6831fc581e745cd2a3ac118f314f33 --- .../src/com/android/systemui/statusbar/phone/ScrimController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java index 00f26beb6478..c7277935b378 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java @@ -405,6 +405,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, Dump if (mKeyguardStateController.isKeyguardFadingAway()) { mStatusBarKeyguardViewManager.onKeyguardFadedAway(); } + dispatchScrimsVisible(); } }; -- cgit v1.2.3-59-g8ed1b