Do not animate background when launching from all apps or home.
I think this animation was broken, and my previous CL accidentally fixed it, so that blur was actually applied during app launch. This caused some app launch performance regressions, so we will at least disable it whenever the All Apps blur flag is enabled. Test: presubmit, forrest Bug: 416476673 Flag: com.android.launcher3.all_apps_blur Change-Id: I4c7001dc84f67dbef02fbc255613b94347df91b8
This commit is contained in:
1 parent
71d9ca7af3
commit
d1a9660761
1 file changed
+4
-6
@@ -1138,17 +1138,15 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
|
||||
/** Returns animator that controls depth/blur of the background during app/widget opening. */
|
||||
private Animator getBackgroundAnimator() {
|
||||
LauncherState launcherState = mLauncher.getStateManager().getState();
|
||||
boolean currentlyBlurringAllApps = Flags.allAppsBlur() && launcherState == ALL_APPS
|
||||
&& mLauncher.isAllAppsBackgroundBlurEnabled();
|
||||
if (currentlyBlurringAllApps) {
|
||||
// Don't additionally animate/blur the background for this launch (All Apps content
|
||||
// already scales slightly to simulate depth).
|
||||
if (Flags.allAppsBlur()) {
|
||||
// Don't animate/blur the background for this launch, regardless of the launcher state.
|
||||
// We have too many performance issues with the blur.
|
||||
return new AnimatorSet();
|
||||
}
|
||||
|
||||
// When launching an app from overview that doesn't map to a task, we still want to just
|
||||
// blur the wallpaper instead of the launcher surface as well
|
||||
LauncherState launcherState = mLauncher.getStateManager().getState();
|
||||
boolean allowBlurringLauncher =
|
||||
launcherState != OVERVIEW && BlurUtils.supportsBlursOnWindows();
|
||||
|
||||
|
||||
Reference in new issue
Block a user