summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Spurlock <jspurlock@google.com> 2013-11-14 17:40:02 -0500
committer John Spurlock <jspurlock@google.com> 2013-11-14 19:01:20 -0500
commit327276440f86fc9dec5c72b687b77c58d15473f1 (patch)
tree8f068f95116faf6b1a32da98f8cbd1602e99e154
parent24fe066ee2ea6d6ea9e30e6f323dad6960c24177 (diff)
Avoid skipping animated status bar icon frames.
By avoiding a known issue in AnimationDrawable. Bug:11694594 Change-Id: I87540728118833f29fc7b64a5c853bc26fd19d73
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/AnimatedImageView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/AnimatedImageView.java b/packages/SystemUI/src/com/android/systemui/statusbar/AnimatedImageView.java
index 9839fe9e6f4d..7d3e870c1a8f 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/AnimatedImageView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/AnimatedImageView.java
@@ -38,7 +38,7 @@ public class AnimatedImageView extends ImageView {
}
private void updateAnim() {
- Drawable drawable = getDrawable();
+ Drawable drawable = mAttached ? getDrawable() : null;
if (mAttached && mAnim != null) {
mAnim.stop();
}