diff options
author | Danny Lin <danny@kdrag0n.dev> | 2020-10-04 00:36:26 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 301446f7ee0a9325a69872b63c5bbbb1f69c2562 (patch) | |
tree | 8fca2877535bbcadf3569f90422190679fccc4ed | |
parent | 6f0e7eb26965b1be0490329f7467513318d0c5cb (diff) |
Trebuchet: Allow blur in all states except ALL_APPS and NORMAL
We want to blur in more states for completeness:
- Background app: inter-app quick switch
- Hint: intermediate transition state
- ... and likely more that I haven't encountered yet.
None of the additional states above have major performance issues with
blur, and we are allowing more states than we're blocking now, so let's
change this to a blocklist that only contains states known to exhibit
poor performance.
Change-Id: Ie92da12f21a2dd0523769c7198fe1c1d2e2810e9
-rw-r--r-- | quickstep/src/com/android/launcher3/statehandlers/DepthController.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java index b60c4efbc..9de8ae950 100644 --- a/quickstep/src/com/android/launcher3/statehandlers/DepthController.java +++ b/quickstep/src/com/android/launcher3/statehandlers/DepthController.java @@ -227,11 +227,11 @@ public class DepthController implements StateHandler<LauncherState>, if (supportsBlur) { final int blur; - if (mLauncher.isInState(LauncherState.OVERVIEW) || - mLauncher.isInState(LauncherState.QUICK_SWITCH)) { - blur = (int) (mDepth * mMaxBlurRadius); - } else { + if (mLauncher.isInState(LauncherState.ALL_APPS) || + mLauncher.isInState(LauncherState.NORMAL)) { blur = 0; + } else { + blur = (int) (mDepth * mMaxBlurRadius); } new TransactionCompat() .setBackgroundBlurRadius(mSurface, blur) |