summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2013-11-15 17:10:03 -0500
committerJohn Spurlock <jspurlock@google.com>2013-11-18 15:59:37 -0500
commit180979f76b0c99cd7053a44692f6408721b74bce (patch)
tree1f81118ce47d94b87d1422ca96d98cf6171aa1b2 /packages
parentaff6ea9516ebb4c7e5bf487f7c867f31e8fbbd96 (diff)
downloadframeworks_base-180979f76b0c99cd7053a44692f6408721b74bce.zip
frameworks_base-180979f76b0c99cd7053a44692f6408721b74bce.tar.gz
frameworks_base-180979f76b0c99cd7053a44692f6408721b74bce.tar.bz2
Fix logic problems in AnimationDrawable and View.
1. View now checks both queues when unscheduling runnables, fixing the case where work was scheduled pre-attach, and unscheduled post-attach. 2. AnimationDrawable avoids posting duplicate runnables when rescheduling itself. 3. Decouple is-animation-running state from current frame pointer in AnimationDrawable. Some calls init to the first frame, but do not kick off the animation. 4. Remove workaround in SystemUI's AnimatedImageView (status bar icon) now that the underlying framework issues are fixed. Bug:11694594 Change-Id: I77ca6bd80262f7edcf980b2d7efc2592f8051f29
Diffstat (limited to 'packages')
-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 7d3e870..9839fe9 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 = mAttached ? getDrawable() : null;
+ Drawable drawable = getDrawable();
if (mAttached && mAnim != null) {
mAnim.stop();
}