From 327276440f86fc9dec5c72b687b77c58d15473f1 Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Thu, 14 Nov 2013 17:40:02 -0500 Subject: Avoid skipping animated status bar icon frames. By avoiding a known issue in AnimationDrawable. Bug:11694594 Change-Id: I87540728118833f29fc7b64a5c853bc26fd19d73 --- .../SystemUI/src/com/android/systemui/statusbar/AnimatedImageView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3-59-g8ed1b