From 338491687ac7491def482d5db094018d37fcf85f Mon Sep 17 00:00:00 2001 From: Andy Wickham Date: Mon, 27 Feb 2023 19:06:02 -0800 Subject: [PATCH] Resets All Apps pullback alpha on state change. Previously the progress alpha was updated, but in some cases (e.g. 0 animation speed), the final alpha was not always applied to the pullback property. Fix: 243015279 Test: Disable animations, swipe up to all apps, swipe up nav bar to close, swipe up to all apps again. Alpha is now properly set. (See b/232536048#comment49). Change-Id: Ifb8a4cd3ee7cc94a5851d355fdf52860366b8f2f --- .../android/launcher3/allapps/AllAppsTransitionController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher3/allapps/AllAppsTransitionController.java b/src/com/android/launcher3/allapps/AllAppsTransitionController.java index 4430a94654..54bf6a8932 100644 --- a/src/com/android/launcher3/allapps/AllAppsTransitionController.java +++ b/src/com/android/launcher3/allapps/AllAppsTransitionController.java @@ -406,6 +406,8 @@ public class AllAppsTransitionController Interpolator allAppsFade = config.getInterpolator(ANIM_ALL_APPS_FADE, LINEAR); setter.setFloat(getAppsViewProgressAlpha(), MultiPropertyFactory.MULTI_PROPERTY_VALUE, hasAllAppsContent ? 1 : 0, allAppsFade); + setter.setFloat(getAppsViewPullbackAlpha(), MultiPropertyFactory.MULTI_PROPERTY_VALUE, + hasAllAppsContent ? 1 : 0, allAppsFade); boolean shouldProtectHeader = ALL_APPS == state || mLauncher.getStateManager().getState() == ALL_APPS;