summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-02-17 21:17:48 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-02-17 21:17:48 -0800
commit6f4a52a3f7c6bd87e7109d741441bff332a445a4 (patch)
tree52f3b8c3574f03f382feff8682d1528a11cd686a /core
parent6c71d476f32adb5308a2a9e32660b66b2b7e6c1a (diff)
parent67e9e9df929aad9139f1dc776b15f6c5d64f424e (diff)
downloadframeworks_base-6f4a52a3f7c6bd87e7109d741441bff332a445a4.zip
frameworks_base-6f4a52a3f7c6bd87e7109d741441bff332a445a4.tar.gz
frameworks_base-6f4a52a3f7c6bd87e7109d741441bff332a445a4.tar.bz2
am 67e9e9df: Manual merge of 40170 (b4a107d8269d1a75b8f270e0516c1fa3b517f8f9) DO NOT MERGE
Merge commit '67e9e9df929aad9139f1dc776b15f6c5d64f424e' into eclair-plus-aosp * commit '67e9e9df929aad9139f1dc776b15f6c5d64f424e': Manual merge of 40170 (b4a107d8269d1a75b8f270e0516c1fa3b517f8f9) DO NOT MERGE
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/View.java2
-rw-r--r--core/java/android/view/animation/Animation.java10
2 files changed, 11 insertions, 1 deletions
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 a28c784..4af1c89 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.