Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86065b81 authored by Jeremy Sim's avatar Jeremy Sim
Browse files

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
parent f733a716
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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,
+3 −0
Original line number Diff line number Diff line
@@ -4156,6 +4156,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
        }
    }

    /**
     * Called when staging a split from Home/AllApps, using the icon long-press menu.
     */
    public void initiateSplitSelect(QuickstepSystemShortcut.SplitSelectSource splitSelectSource) {
        mSplitSelectSource = splitSelectSource;
        mSplitSelectStateController.setInitialTaskSelect(splitSelectSource.intent,