From 86065b81e00995f8699775bbf4904747fcc255d9 Mon Sep 17 00:00:00 2001 From: Jeremy Sim Date: Mon, 3 Oct 2022 12:21:41 -0700 Subject: [PATCH] Fix animation slowdown when splitting from All Apps This patch fixes a tablet bug related to splitting from All Apps. Splitting from AllApps was playing a very slow animation. The bug occurred because there was no case set in QuickstepAtomicAnimationFactory for animating from the ALL_APPS state. Fixed by setting the appropriate case in QuickstepAtomicAnimationFactory. Fixes: 247053528 Test: Manual Change-Id: I7391dc7049a6ff5a7f8c7e1ae8b69e29899248fa --- .../uioverrides/states/QuickstepAtomicAnimationFactory.java | 3 ++- quickstep/src/com/android/quickstep/views/RecentsView.java | 3 +++ 2 files changed, 5 insertions(+), 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 bcd722f4e3..da07edf9bf 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/states/QuickstepAtomicAnimationFactory.java +++ b/quickstep/src/com/android/launcher3/uioverrides/states/QuickstepAtomicAnimationFactory.java @@ -197,7 +197,8 @@ public class QuickstepAtomicAnimationFactory extends config.setInterpolator(ANIM_OVERVIEW_ACTIONS_FADE, clampToProgress(LINEAR, timings.getActionsFadeStartOffset(), timings.getActionsFadeEndOffset())); - } else if (fromState == NORMAL && toState == OVERVIEW_SPLIT_SELECT) { + } else if ((fromState == NORMAL || fromState == ALL_APPS) + && toState == OVERVIEW_SPLIT_SELECT) { // Splitting from Home is currently only available on tablets SplitAnimationTimings timings = SplitAnimationTimings.TABLET_HOME_TO_SPLIT; config.setInterpolator(ANIM_SCRIM_FADE, clampToProgress(LINEAR, diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 2f91e16566..1f601df162 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -4156,6 +4156,9 @@ public abstract class RecentsView