From 8bf6c9edda889249ca47b80a56f7862e058a588d Mon Sep 17 00:00:00 2001 From: wilsonshih Date: Thu, 4 May 2023 03:02:45 +0000 Subject: [PATCH] Fix pauseBlur make launcher become opaque ...so reveal animation can blend with the launching target. Bug: 279785569 Test: manual, rotate device, launch app from quick switch. Verify launcher surface isn't opaque so app window can blend with reveal animation. Change-Id: I46b0652fd14ff66b681a9212608c13fe4ec50eb3 --- .../src/com/android/quickstep/util/BaseDepthController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/util/BaseDepthController.java b/quickstep/src/com/android/quickstep/util/BaseDepthController.java index b5c582a3e0..23cfb39ec2 100644 --- a/quickstep/src/com/android/quickstep/util/BaseDepthController.java +++ b/quickstep/src/com/android/quickstep/util/BaseDepthController.java @@ -75,7 +75,7 @@ public class BaseDepthController { // marking the launcher surface as opaque. Only used in certain Launcher states. private boolean mHasContentBehindLauncher; - /** Pause applying depth and blur, can be used when something behind the Launcher. */ + /** Pause blur but allow transparent, can be used when launch something behind the Launcher. */ protected boolean mPauseBlurs; /** @@ -132,7 +132,7 @@ public class BaseDepthController { return; } boolean hasOpaqueBg = mLauncher.getScrimView().isFullyOpaque(); - boolean isSurfaceOpaque = mPauseBlurs || (!mHasContentBehindLauncher && hasOpaqueBg); + boolean isSurfaceOpaque = !mHasContentBehindLauncher && hasOpaqueBg && !mPauseBlurs; mCurrentBlur = !mCrossWindowBlursEnabled || hasOpaqueBg || mPauseBlurs ? 0 : (int) (depth * mMaxBlurRadius);