From e58a66a1592fd24f27cc8af1eb6533e31cb6f77d Mon Sep 17 00:00:00 2001 From: George Mount Date: Tue, 28 Mar 2023 09:26:12 -0700 Subject: [PATCH] Fix crash in Google TV app caused by animator change Fix: 274888966 Removed a condition that stopped executing start() multiple times on the same animator. Test: android.animator.cts, android.animator, ExpandAndDragToDismissTest Change-Id: I0e59d73b6e555313d4c00c0390614522f19cc627 --- core/java/android/animation/ValueAnimator.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/java/android/animation/ValueAnimator.java b/core/java/android/animation/ValueAnimator.java index 5d69f8b80799a..ead238f75ba47 100644 --- a/core/java/android/animation/ValueAnimator.java +++ b/core/java/android/animation/ValueAnimator.java @@ -1118,10 +1118,6 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio if (Looper.myLooper() == null) { throw new AndroidRuntimeException("Animators may only be run on Looper threads"); } - if (playBackwards == mResumed && mSelfPulse == !mSuppressSelfPulseRequested && mStarted) { - // already started - return; - } mReversing = playBackwards; mSelfPulse = !mSuppressSelfPulseRequested; // Special case: reversing from seek-to-0 should act as if not seeked at all.