From 061548668d7bf8d8d68e214719d0c1828b8784a1 Mon Sep 17 00:00:00 2001 From: zakcohen Date: Mon, 21 Jun 2021 15:18:16 -0700 Subject: [PATCH] Fade overview action buttons faster in overview -> home Spec says transition should take ~80ms, default for this transition is ~300ms, so clamp to a quarter of the range. Bug: 191699762 Test: Local Change-Id: I5ef6701eee0d25d5d9987e05cb53aee3e5e8e143 --- .../uioverrides/states/QuickstepAtomicAnimationFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/uioverrides/states/QuickstepAtomicAnimationFactory.java b/quickstep/src/com/android/launcher3/uioverrides/states/QuickstepAtomicAnimationFactory.java index eb524a9145..0e2fbbc2bf 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/states/QuickstepAtomicAnimationFactory.java +++ b/quickstep/src/com/android/launcher3/uioverrides/states/QuickstepAtomicAnimationFactory.java @@ -86,7 +86,7 @@ public class QuickstepAtomicAnimationFactory extends StateAnimationConfig config) { RecentsView overview = mActivity.getOverviewPanel(); if (toState == NORMAL && fromState == OVERVIEW) { - config.setInterpolator(ANIM_OVERVIEW_ACTIONS_FADE, DEACCEL); + config.setInterpolator(ANIM_OVERVIEW_ACTIONS_FADE, clampToProgress(LINEAR, 0, 0.25f)); config.setInterpolator(ANIM_SCRIM_FADE, LINEAR); config.setInterpolator(ANIM_WORKSPACE_SCALE, DEACCEL); config.setInterpolator(ANIM_WORKSPACE_FADE, ACCEL);