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

Commit dd4487fd authored by Tony Wickham's avatar Tony Wickham Committed by Automerger Merge Worker
Browse files

Merge "Invalidate ThemedIconDrawable when background color changes" into...

Merge "Invalidate ThemedIconDrawable when background color changes" into tm-qpr-dev am: ec39b404 am: 04cb5603 am: 5509c419

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/systemui/+/22103524



Change-Id: Idf847a41a295a7942d92187feb232c8068a6ff1d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b1429339 5509c419
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 {