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

Commit 3b7051dd authored by Raj M's avatar Raj M
Browse files

Fix for Quicktep FC

Change-Id: I1a0cfe1fe48ba9ba7507f1931368ad79e5c05fed
BUG:206565954
parent 1c77a89a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -50,8 +50,12 @@ 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);