diff options
Diffstat (limited to 'iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java')
-rw-r--r-- | iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java b/iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java index a42232e..97a0fd3 100644 --- a/iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java +++ b/iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java @@ -50,12 +50,8 @@ public class DotRenderer { private final float[] mRightDotPosition; private final float[] mLeftDotPosition; - private static final int MIN_DOT_SIZE = 1; public DotRenderer(int iconSizePx, Path iconShapePath, int pathSize) { int size = Math.round(SIZE_PERCENTAGE * iconSizePx); - if (size <= 0) { - size = MIN_DOT_SIZE; - } ShadowGenerator.Builder builder = new ShadowGenerator.Builder(Color.TRANSPARENT); builder.ambientShadowAlpha = 88; mBackgroundWithShadow = builder.setupBlurForSize(size).createPill(size, size); @@ -125,7 +121,7 @@ public class DotRenderer { mCirclePaint.setColor(Color.BLACK); canvas.drawBitmap(mBackgroundWithShadow, mBitmapOffset, mBitmapOffset, mCirclePaint); - mCirclePaint.setColor(params.dotColor); + mCirclePaint.setColor(params.color); canvas.drawCircle(0, 0, mCircleRadius, mCirclePaint); canvas.restore(); } @@ -133,10 +129,7 @@ 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 dotColor; - /** The color (possibly based on the icon) to use for a predicted app. */ - @ViewDebug.ExportedProperty(category = "notification dot", formatToHexString = true) - public int appColor; + public int color; /** The bounds of the icon that the dot is drawn on top of. */ @ViewDebug.ExportedProperty(category = "notification dot") public Rect iconBounds = new Rect(); |