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

Verified Commit da0c1266 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Yash Garg
Browse files

iconloader: Add unchanges constructor for aosp

parent 0fd9988a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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);
@@ -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.");