diff --git a/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java b/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java index b2dc97e78c..b80d963a2a 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java +++ b/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java @@ -21,6 +21,7 @@ import static com.android.launcher3.logging.StatsLogManager.LAUNCHER_STATE_OVERV import android.content.Context; import android.graphics.Rect; import android.os.SystemProperties; +import android.view.CrossWindowBlurListeners; import androidx.core.graphics.ColorUtils; @@ -124,8 +125,11 @@ public class OverviewState extends LauncherState { @Override public int getWorkspaceScrimColor(Launcher launcher) { - return ColorUtils.setAlphaComponent( - Themes.getAttrColor(launcher, R.attr.overviewScrimColor), 15); + int color = Themes.getAttrColor(launcher, R.attr.overviewScrimColor); + if (CrossWindowBlurListeners.getInstance().isCrossWindowBlurEnabled()) { + return ColorUtils.setAlphaComponent(color, 15); + } + return color; } @Override