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

Commit ba6e8ef1 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Skip all stash animations in phone mode

Bug: 362713428
Test: manual
Flag: EXEMPT bugfix
Change-Id: Ieab234fc9fc96322800e3e1fb4532c270187a0f5
parent a2dd2d2b
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1019,6 +1019,9 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
     */
    @Nullable
    public Animator createApplyStateAnimator(long duration) {
        if (mActivity.isPhoneMode()) {
            return null;
        }
        return mStatePropertyHolder.createSetStateAnimator(mState, duration);
    }

@@ -1064,10 +1067,6 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba

    /** Called when some system ui state has changed. (See SYSUI_STATE_... in QuickstepContract) */
    public void updateStateForSysuiFlags(long systemUiStateFlags, boolean skipAnim) {
        if (mActivity.isPhoneMode()) {
            return;
        }

        long animDuration = TASKBAR_STASH_DURATION;
        long startDelay = 0;