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

Commit ec39b404 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Invalidate ThemedIconDrawable when background color changes" into tm-qpr-dev

parents 9eee4075 f8985347
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -93,7 +93,10 @@ public class ThemedIconDrawable extends FastBitmapDrawable {
    }

    public void changeBackgroundColor(int colorBg) {
        if (mIsDisabled) return;

        mBgPaint.setColorFilter(new BlendModeColorFilter(colorBg, BlendMode.SRC_IN));
        invalidateSelf();
    }

    static class ThemedConstantState extends FastBitmapConstantState {