Fix live tile blur when overview blur flag is off

"applyDepthAndBlur" should be directly called when Opaqueness changes. When scrim is not opaque, blur should be applied to overview background and when scrimview is fully opaque, blur should be removed and set to 0.

Fix: 416686314
Test: Go to overview (live tile) when flag is off.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: Iaad158ddb2f6dc89afefcd89a569a202a712ad47
This commit is contained in:
vinayjoglekar committed 2025-05-12 12:04:33 +01:00
1 parent 247d720fec
commit abeae4241b
1 file changed
+1 -1
@@ -53,7 +53,7 @@ public class DepthController extends BaseDepthController implements StateHandler
private final Consumer<Boolean> mCrossWindowBlurListener = this::setCrossWindowBlursEnabled;
private final Runnable mOpaquenessListener = this::onBlurChange;
private final Runnable mOpaquenessListener = this::applyDepthAndBlur;
// Workaround for animating the depth when multiwindow mode changes.
private boolean mIgnoreStateChangesDuringMultiWindowAnimation = false;