Loading iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java +8 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,10 @@ public class DotRenderer { private final Rect mTextRect = new Rect(); private final boolean mDisplayCount; public DotRenderer(int iconSizePx, Path iconShapePath, int pathSize) { this(iconSizePx, iconShapePath, pathSize, false, null); } public DotRenderer(int iconSizePx, Path iconShapePath, int pathSize, Boolean displayCount, Typeface typeface) { mDisplayCount = displayCount; int size = Math.round((displayCount ? SIZE_PERCENTAGE_WITH_COUNT : SIZE_PERCENTAGE) * iconSizePx); Loading Loading @@ -116,6 +120,10 @@ public class DotRenderer { /** * Draw a circle on top of the canvas according to the given params. */ public void draw(Canvas canvas, DrawParams params) { draw(canvas, params, 0); } public void draw(Canvas canvas, DrawParams params, int numNotifications) { if (params == null) { Log.e(TAG, "Invalid null argument(s) passed in call to draw."); Loading Loading
iconloaderlib/src/com/android/launcher3/icons/DotRenderer.java +8 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,10 @@ public class DotRenderer { private final Rect mTextRect = new Rect(); private final boolean mDisplayCount; public DotRenderer(int iconSizePx, Path iconShapePath, int pathSize) { this(iconSizePx, iconShapePath, pathSize, false, null); } public DotRenderer(int iconSizePx, Path iconShapePath, int pathSize, Boolean displayCount, Typeface typeface) { mDisplayCount = displayCount; int size = Math.round((displayCount ? SIZE_PERCENTAGE_WITH_COUNT : SIZE_PERCENTAGE) * iconSizePx); Loading Loading @@ -116,6 +120,10 @@ public class DotRenderer { /** * Draw a circle on top of the canvas according to the given params. */ public void draw(Canvas canvas, DrawParams params) { draw(canvas, params, 0); } public void draw(Canvas canvas, DrawParams params, int numNotifications) { if (params == null) { Log.e(TAG, "Invalid null argument(s) passed in call to draw."); Loading