summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames O'Leary <jamesoleary@google.com>2022-05-12 16:37:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-05-12 16:37:39 +0000
commit64644a3bfb468b4ae40e25107159dfcb015cffde (patch)
tree29bfb84d07e9bd9d61581fd49208bf45b5e7a8cf
parentba20fd3486c35ed1126ad5892f1c9cea0531bf09 (diff)
parent390d55bc1c7b7cde2ef28101cf911b820c672aaa (diff)
downloadsystemui-64644a3bfb468b4ae40e25107159dfcb015cffde.tar.gz
Merge "Separate color into app color and dot color" into tm-dev
-rw-r--r--iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java b/iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java
index 361a7d9..a42232e 100644
--- a/iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java
+++ b/iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java
@@ -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();