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

Commit e7e6d4ac authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge changes from topic "am-368a5e55-b07c-46fa-b16f-5be22a0ce60a" into ub-launcher3-master

* changes:
  [automerger] Fix gap between notification dots and their shadows am: dfb785af
  Fix gap between notification dots and their shadows
parents a279b2ea ae3cece0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -126,13 +126,13 @@ public class ShadowGenerator {
        }

        public Bitmap createPill(int width, int height) {
            radius = height / 2;
            radius = height / 2f;

            int centerX = Math.round(width / 2 + shadowBlur);
            int centerX = Math.round(width / 2f + shadowBlur);
            int centerY = Math.round(radius + shadowBlur + keyShadowDistance);
            int center = Math.max(centerX, centerY);
            bounds.set(0, 0, width, height);
            bounds.offsetTo(center - width / 2, center - height / 2);
            bounds.offsetTo(center - width / 2f, center - height / 2f);

            int size = center * 2;
            Bitmap result = Bitmap.createBitmap(size, size, Config.ARGB_8888);