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

Commit 64644a3b authored by James O'Leary's avatar James O'Leary Committed by Android (Google) Code Review
Browse files

Merge "Separate color into app color and dot color" into tm-dev

parents ba20fd34 390d55bc
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();