Do not linear fade out scrims when collapsing in fallback mode for shade blur
Essentially reuse the pre shade blur alpha update path as shade is collapsed
Fixes: 406232015
Test: video in bug
Flag: com.android.systemui.notification_shade_blur
Change-Id: I0994747bf599924bcbb20de64f1b4216963fca3f
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 236383b..aa20b15 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
@@ -1030,7 +1030,7 @@
mBehindAlpha = 1;
mNotificationsAlpha = behindFraction * getDefaultScrimAlpha();
} else {
- if (Flags.notificationShadeBlur()) {
+ if (Flags.notificationShadeBlur() && isBlurCurrentlySupported()) {
// TODO (b/390730594): match any spec for controlling alpha based on shade
// expansion fraction.
mBehindAlpha = mState.getBehindAlpha() * mPanelExpansionFraction;