Merge "Fix the lock screen."

This commit is contained in:
Romain Guy
2010-02-09 18:50:55 -08:00
committed by Android (Google) Code Review
2 changed files with 11 additions and 1 deletions

View File

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

View File

@@ -276,6 +276,16 @@ public abstract class Animation implements Cloneable {
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.
*