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

Commit 06513f11 authored by Tony Wickham's avatar Tony Wickham
Browse files

Don't reapply window transform if we are already running a window anim

Bug: 149934536
Change-Id: I3fa7f0b2581ca83923a42f37f52850b02c22e995
Merged-In: I3fa7f0b2581ca83923a42f37f52850b02c22e995
parent 03a4a0cd
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -493,7 +493,11 @@ public abstract class BaseSwipeUpHandlerV2<T extends StatefulActivity<?>, Q exte
        // much the window is bound by overscroll (vs moving freely).
        if (animate) {
            ValueAnimator reapplyWindowTransformAnim = ValueAnimator.ofFloat(0, 1);
            reapplyWindowTransformAnim.addUpdateListener(anim -> applyWindowTransform());
            reapplyWindowTransformAnim.addUpdateListener(anim -> {
                if (mRunningWindowAnim == null) {
                    applyWindowTransform();
                }
            });
            reapplyWindowTransformAnim.setDuration(RECENTS_ATTACH_DURATION).start();
        } else {
            applyWindowTransform();