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
This commit is contained in:
George Mount
2023-03-28 09:26:12 -07:00
parent 2d830c7580
commit e58a66a159

View File

@@ -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.