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

Commit 1ac0f0fe authored by Rahul Banerjee's avatar Rahul Banerjee
Browse files

Replace notificationShadeBlur with unified WindowBlurFlag

Bug: 370555223
Flag: com.android.systemui.notification_shade_blur
Test: Manual (flash and verify that notificationShadeBlur still turns blur on for shade and for bouncer)
Change-Id: Ic1c566d0538821d3b1b19a3e920da359a83e9a1c
parent 77ed57a9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@

package com.android.systemui.scrim;

import static com.android.systemui.Flags.notificationShadeBlur;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
@@ -216,7 +214,7 @@ public class ScrimDrawable extends Drawable {
    public void draw(@NonNull Canvas canvas) {
        mPaint.setColor(mMainColor);
        mPaint.setAlpha(mAlpha);
        if (notificationShadeBlur() || WindowBlurFlag.isEnabled()) {
        if (WindowBlurFlag.isEnabled()) {
            // TODO (b/381263600), wire this at ScrimController, move it to PrimaryBouncerTransition
            mPaint.setAlpha((int) (0.5f * mAlpha));
        }
+2 −3
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@

package com.android.systemui.scrim;

import static com.android.systemui.Flags.notificationShadeBlur;

import static java.lang.Float.isNaN;

import android.annotation.NonNull;
@@ -44,6 +42,7 @@ import com.android.internal.colorextraction.ColorExtractor;
import com.android.systemui.res.R;
import com.android.systemui.shade.TouchLogger;
import com.android.systemui.util.LargeScreenUtils;
import com.android.systemui.window.flag.WindowBlurFlag;

import java.util.concurrent.Executor;

@@ -253,7 +252,7 @@ public class ScrimView extends View {
            if (mBlendWithMainColor) {
                mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor, tintAmount);
            }
            if (notificationShadeBlur()) {
            if (WindowBlurFlag.isEnabled()) {
                int layerAbove = ColorUtils.setAlphaComponent(
                        getResources().getColor(R.color.shade_panel, null),
                        (int) (0.4f * 255));