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

Commit fb81eaeb authored by Chandru S's avatar Chandru S
Browse files

Use 0.2f as the behind scrim alpha when keyguard or glanceable hub widgets screen is open

Fixes: 406208846
Test: verified manually looking at the logs
Flag: com.android.systemui.notification_shade_blur
Change-Id: I65144290f163b83af869d606703ce3486ecb4bcc
parent 822fd118
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -88,9 +88,9 @@ public enum ScrimState {
                mAnimationDuration = ScrimController.ANIMATION_DURATION;
            }
            if (Flags.notificationShadeBlur()) {
                mBehindTint = Color.TRANSPARENT;
                mBehindTint = mBackgroundColor;
                mNotifTint = mNotificationScrimColor;
                mBehindAlpha = 0.0f;
                mBehindAlpha = mScrimBehindAlphaKeyguard;
                mNotifAlpha = 0.0f;
                mFrontAlpha = 0.0f;
            } else {
@@ -433,9 +433,9 @@ public enum ScrimState {
        public void prepare(ScrimState previousState) {
            if (Flags.notificationShadeBlur()) {
                // Scrim parameters should match KEYGUARD as we're showing on top of keyguard.
                mBehindTint = Color.TRANSPARENT;
                mBehindTint = mBackgroundColor;
                mNotifTint = mNotificationScrimColor;
                mBehindAlpha = 0.0f;
                mBehindAlpha = mScrimBehindAlphaKeyguard;
                mNotifAlpha = 0.0f;
                mFrontAlpha = 0.0f;
            } else {