summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-02-10 11:30:03 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-02-10 11:30:03 -0800
commit46b8efa9904b0067d63dc423daca4dccef196f37 (patch)
treecf3de4b88264783c50fe0d3e20c7a219ab626035
parentd0efb6bc159b86dfad540aa9dc3e20e1bb56d930 (diff)
parent5180d1c52209f6cd86f2273da6105205c505510a (diff)
downloadframeworks_base-46b8efa9904b0067d63dc423daca4dccef196f37.zip
frameworks_base-46b8efa9904b0067d63dc423daca4dccef196f37.tar.gz
frameworks_base-46b8efa9904b0067d63dc423daca4dccef196f37.tar.bz2
Merge "Prevent infinite loop in the Phone UI."
-rw-r--r--core/java/android/view/animation/Animation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/animation/Animation.java b/core/java/android/view/animation/Animation.java
index 337fe58..349b7e5 100644
--- a/core/java/android/view/animation/Animation.java
+++ b/core/java/android/view/animation/Animation.java
@@ -281,8 +281,8 @@ public abstract class Animation implements Cloneable {
*/
public void detach() {
if (mStarted && !mEnded) {
- if (mListener != null) mListener.onAnimationEnd(this);
mEnded = true;
+ if (mListener != null) mListener.onAnimationEnd(this);
}
}
@@ -776,10 +776,10 @@ public abstract class Animation implements Cloneable {
if (expired) {
if (mRepeatCount == mRepeated) {
if (!mEnded) {
+ mEnded = true;
if (mListener != null) {
mListener.onAnimationEnd(this);
}
- mEnded = true;
}
} else {
if (mRepeatCount > 0) {