am 67e9e9df: Manual merge of 40170 (b4a107d826) DO NOT MERGE

Merge commit '67e9e9df929aad9139f1dc776b15f6c5d64f424e' into eclair-plus-aosp

* commit '67e9e9df929aad9139f1dc776b15f6c5d64f424e':
  Manual merge of 40170 (b4a107d826) DO NOT MERGE
This commit is contained in:
Romain Guy
2010-02-17 21:17:48 -08:00
committed by Android Git Automerger
2 changed files with 11 additions and 1 deletions

View File

@@ -8192,7 +8192,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
*/ */
public void clearAnimation() { public void clearAnimation() {
if (mCurrentAnimation != null) { if (mCurrentAnimation != null) {
mCurrentAnimation.cancel(); mCurrentAnimation.detach();
} }
mCurrentAnimation = null; mCurrentAnimation = null;
} }

View File

@@ -277,6 +277,16 @@ public abstract class Animation implements Cloneable {
mMore = mOneMoreTime = false; mMore = mOneMoreTime = false;
} }
/**
* @hide
*/
public void detach() {
if (mStarted && !mEnded) {
if (mListener != null) mListener.onAnimationEnd(this);
mEnded = true;
}
}
/** /**
* Whether or not the animation has been initialized. * Whether or not the animation has been initialized.
* *