Fix cancel crash
Bug: 18059003 Change-Id: I579468fbd1645049f8fbe335faf4da1f2d3bb0a3
This commit is contained in:
@@ -219,7 +219,7 @@ public class RenderNodeAnimator extends Animator {
|
||||
|
||||
@Override
|
||||
public void cancel() {
|
||||
if (mState != STATE_FINISHED) {
|
||||
if (mState != STATE_PREPARE && mState != STATE_FINISHED) {
|
||||
if (mState == STATE_DELAYED) {
|
||||
getHelper().removeDelayedAnimation(this);
|
||||
notifyStartListeners();
|
||||
|
||||
Reference in New Issue
Block a user