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

Commit c021ef68 authored by James O'Leary's avatar James O'Leary Committed by Automerger Merge Worker
Browse files

Merge "Separate color into app color and dot color" into tm-dev am: 64644a3b...

Merge "Separate color into app color and dot color" into tm-dev am: 64644a3b am: 2291670f am: 2952ac2a

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



Change-Id: I54efc398b381ce9829e4539e0e8d2e4eb952ae23
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents ae34b922 2952ac2a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public class DotRenderer {

        mCirclePaint.setColor(Color.BLACK);
        canvas.drawBitmap(mBackgroundWithShadow, mBitmapOffset, mBitmapOffset, mCirclePaint);
        mCirclePaint.setColor(params.color);
        mCirclePaint.setColor(params.dotColor);
        canvas.drawCircle(0, 0, mCircleRadius, mCirclePaint);
        canvas.restore();
    }
@@ -133,7 +133,10 @@ public class DotRenderer {
    public static class DrawParams {
        /** The color (possibly based on the icon) to use for the dot. */
        @ViewDebug.ExportedProperty(category = "notification dot", formatToHexString = true)
        public int color;
        public int dotColor;
        /** The color (possibly based on the icon) to use for a predicted app. */
        @ViewDebug.ExportedProperty(category = "notification dot", formatToHexString = true)
        public int appColor;
        /** The bounds of the icon that the dot is drawn on top of. */
        @ViewDebug.ExportedProperty(category = "notification dot")
        public Rect iconBounds = new Rect();