From d1a9660761ab9da948cf06077d57e3a81f55e95c Mon Sep 17 00:00:00 2001 From: Andy Wickham Date: Fri, 16 May 2025 01:20:33 -0700 Subject: [PATCH] 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 --- .../android/launcher3/QuickstepTransitionManager.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java index c57c323177..75a3450ce6 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java @@ -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();