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
This commit is contained in:
1 parent
0e068b1213
commit
8bf6c9edda
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user