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

Commit 24220265 authored by Kensuke Matsui's avatar Kensuke Matsui Committed by android-build-merger
Browse files

Merge "Avoid race condition during grayscale animation of QS tile" am: bceee1cb

am: 36f27fa6

Change-Id: I7d7d9b811a08c68403e7a7539793cc4af226571e
parents 248b9159 36f27fa6
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -439,15 +439,22 @@ public abstract class QSTileImpl<TState extends State> implements QSTile {

    public static class DrawableIcon extends Icon {
        protected final Drawable mDrawable;
        protected final Drawable mInvisibleDrawable;

        public DrawableIcon(Drawable drawable) {
            mDrawable = drawable;
            mInvisibleDrawable = drawable.getConstantState().newDrawable();
        }

        @Override
        public Drawable getDrawable(Context context) {
            return mDrawable;
        }

        @Override
        public Drawable getInvisibleDrawable(Context context) {
            return mInvisibleDrawable;
        }
    }

    public static class DrawableIconWithRes extends DrawableIcon {