diff options
author | Romain Guy <romainguy@android.com> | 2010-02-09 18:50:08 -0800 |
---|---|---|
committer | android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> | 2010-02-18 22:55:18 -0800 |
commit | e34e0f9e51fb455f75ad8e5049ab5b545daeb7ca (patch) | |
tree | 5d04fb049c45707c9db87c61cbf54cf229a260d2 | |
parent | 4746eaa0f6aad271e3e6b91ebc00a830451dbdf8 (diff) | |
download | base-e34e0f9e51fb455f75ad8e5049ab5b545daeb7ca.tar.gz |
Manual merge of 40170 (b4a107d8269d1a75b8f270e0516c1fa3b517f8f9) DO NOT MERGE
Fix the lock screen.
-rw-r--r-- | core/java/android/view/View.java | 2 | ||||
-rw-r--r-- | core/java/android/view/animation/Animation.java | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 94ff15eb62ba..da48f403656b 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 3e107df95493..16a695f2f5eb 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. |