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

Commit 40889e01 authored by Andrew Cole's avatar Andrew Cole Committed by Android (Google) Code Review
Browse files

Merge "Increase Themed Icon Size" into main

parents 9a52f9b1 596433d5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -419,6 +419,7 @@ public class BaseIconFactory implements AutoCloseable {
        mOldBounds.set(icon.getBounds());

        if (icon instanceof AdaptiveIconDrawable) {
            // We are ignoring KEY_SHADOW_DISTANCE because regular icons ignore this at the moment b/298203449
            int offset = Math.max((int) Math.ceil(BLUR_FACTOR * size),
                    Math.round(size * (1 - scale) / 2));
            // b/211896569: AdaptiveIconDrawable do not work properly for non top-left bounds
+2 −1
Original line number Diff line number Diff line
@@ -109,7 +109,8 @@ public class ShadowGenerator {
                scale = (HALF_DISTANCE - BLUR_FACTOR) / (HALF_DISTANCE - minSide);
            }

            float bottomSpace = BLUR_FACTOR + KEY_SHADOW_DISTANCE;
            // We are ignoring KEY_SHADOW_DISTANCE because regular icons ignore this at the moment b/298203449
            float bottomSpace = BLUR_FACTOR;
            if (bounds.bottom < bottomSpace) {
                scale = Math.min(scale,
                        (HALF_DISTANCE - bottomSpace) / (HALF_DISTANCE - bounds.bottom));