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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user