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

Commit 2ac5d874 authored by Raj M's avatar Raj M Committed by Automerger Merge Worker
Browse files

Fix for Quicktep FC am: 3b7051dd am: 7eb2ea9a am: fe8450d3

Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/systemui/+/1902530

Change-Id: Iaa9873a22b2c5e5022d67bf0445b59108c1a3200
parents f4e24943 fe8450d3
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);