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

Bug: 149934536
Change-Id: I3fa7f0b2581ca83923a42f37f52850b02c22e995
This commit is contained in:
Tony Wickham
2020-08-10 15:06:02 -07:00
parent cf5aea05b3
commit c830bef923
@@ -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();