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

Commit c830bef9 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
parent cf5aea05
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -530,7 +530,11 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends
        // 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();