diff options
Diffstat (limited to 'go/quickstep/src')
-rw-r--r-- | go/quickstep/src/com/android/quickstep/ContentFillItemAnimator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/go/quickstep/src/com/android/quickstep/ContentFillItemAnimator.java b/go/quickstep/src/com/android/quickstep/ContentFillItemAnimator.java index 68cbd7a3a..808cd7217 100644 --- a/go/quickstep/src/com/android/quickstep/ContentFillItemAnimator.java +++ b/go/quickstep/src/com/android/quickstep/ContentFillItemAnimator.java @@ -224,6 +224,9 @@ public final class ContentFillItemAnimator extends SimpleItemAnimator { @Override public void endAnimations() { + if (!isRunning()) { + return; + } for (int i = mPendingAnims.size() - 1; i >= 0; i--) { endPendingAnimation(mPendingAnims.get(i)); mPendingAnims.remove(i); @@ -233,7 +236,7 @@ public final class ContentFillItemAnimator extends SimpleItemAnimator { // This calls the on end animation callback which will set values to their end target. anim.cancel(); } - dispatchAnimationsFinished(); + dispatchFinishedWhenDone(); } private void endPendingAnimation(PendingAnimation pendAnim) { |