OSDN Git Service

Fix NPE in ValueAnimator
authorJustin Klaassen <justinklaassen@google.com>
Sat, 23 Jul 2016 02:30:03 +0000 (19:30 -0700)
committerJustin Klaassen <justinklaassen@google.com>
Mon, 25 Jul 2016 19:40:09 +0000 (12:40 -0700)
commit543a7ed7af992c5f62a9df1a20f3a2397d3e6ec3
tree7b1e81f699fee6394ecd13722e596f293ff71558
parentdd756c26e2a081365e9a57685419cdb6526c8a8a
Fix NPE in ValueAnimator

- Reset mAnimationEndRequested to false in ValueAnimator#start(boolean)
  so that previously canceled animated (with a start delay) can be
  canceled again.
- In ObjectAnimator#animateValue(float) check if target == null
  regardless of mTarget == null since it's possible the target was
  explicitly set to null prior to the animator being cancelled.

Bug: 30190459
Change-Id: I6da55737df30a28f48355fc7a41ab91d05979deb
core/java/android/animation/ObjectAnimator.java
core/java/android/animation/ValueAnimator.java