Loading packages/SystemUI/src/com/android/systemui/qs/QSTile.java +8 −7 Original line number Diff line number Diff line Loading @@ -402,13 +402,14 @@ public abstract class QSTile<TState extends State> implements Listenable { @Override public Drawable getDrawable(Context context) { // workaround: get a clean state for every new AVD final AnimatedVectorDrawable d = (AnimatedVectorDrawable) context.getDrawable(mResId) .getConstantState().newDrawable(); d.start(); final Drawable d = super.getDrawable(context).getConstantState().newDrawable(); if (d instanceof AnimatedVectorDrawable) { ((AnimatedVectorDrawable)d).start(); if (mAllowAnimation) { mAllowAnimation = false; } else { d.stop(); // skip directly to end state ((AnimatedVectorDrawable)d).stop(); // skip directly to end state } } return d; } Loading Loading
packages/SystemUI/src/com/android/systemui/qs/QSTile.java +8 −7 Original line number Diff line number Diff line Loading @@ -402,13 +402,14 @@ public abstract class QSTile<TState extends State> implements Listenable { @Override public Drawable getDrawable(Context context) { // workaround: get a clean state for every new AVD final AnimatedVectorDrawable d = (AnimatedVectorDrawable) context.getDrawable(mResId) .getConstantState().newDrawable(); d.start(); final Drawable d = super.getDrawable(context).getConstantState().newDrawable(); if (d instanceof AnimatedVectorDrawable) { ((AnimatedVectorDrawable)d).start(); if (mAllowAnimation) { mAllowAnimation = false; } else { d.stop(); // skip directly to end state ((AnimatedVectorDrawable)d).stop(); // skip directly to end state } } return d; } Loading