Manual merge of 40170 (b4a107d826) DO NOT MERGE

Fix the lock screen.
This commit is contained in:
Romain Guy
2010-02-09 18:50:08 -08:00
committed by Jim Miller
parent 8368ef0b67
commit 67e9e9df92
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() {
if (mCurrentAnimation != null) {
mCurrentAnimation.cancel();
mCurrentAnimation.detach();
}
mCurrentAnimation = null;
}

View File

@@ -277,6 +277,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.
*