Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32727644 authored by John Spurlock's avatar John Spurlock
Browse files

Avoid skipping animated status bar icon frames.

By avoiding a known issue in AnimationDrawable.

Bug:11694594
Change-Id: I87540728118833f29fc7b64a5c853bc26fd19d73
parent 24fe066e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@ public class AnimatedImageView extends ImageView {
    }
    }


    private void updateAnim() {
    private void updateAnim() {
        Drawable drawable = getDrawable();
        Drawable drawable = mAttached ? getDrawable() : null;
        if (mAttached && mAnim != null) {
        if (mAttached && mAnim != null) {
            mAnim.stop();
            mAnim.stop();
        }
        }