From 67e9e9df929aad9139f1dc776b15f6c5d64f424e Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 9 Feb 2010 18:50:08 -0800 Subject: Manual merge of 40170 (b4a107d8269d1a75b8f270e0516c1fa3b517f8f9) DO NOT MERGE Fix the lock screen. --- core/java/android/view/View.java | 2 +- core/java/android/view/animation/Animation.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 94ff15e..da48f40 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -8192,7 +8192,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility */ public void clearAnimation() { if (mCurrentAnimation != null) { - mCurrentAnimation.cancel(); + mCurrentAnimation.detach(); } mCurrentAnimation = null; } diff --git a/core/java/android/view/animation/Animation.java b/core/java/android/view/animation/Animation.java index 3e107df..16a695f 100644 --- a/core/java/android/view/animation/Animation.java +++ b/core/java/android/view/animation/Animation.java @@ -278,6 +278,16 @@ public abstract class Animation implements Cloneable { } /** + * @hide + */ + public void detach() { + if (mStarted && !mEnded) { + if (mListener != null) mListener.onAnimationEnd(this); + mEnded = true; + } + } + + /** * Whether or not the animation has been initialized. * * @return Has this animation been initialized. -- cgit v1.1