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

Commit 03aaced2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix clipping of adaptive icons Bug:62372639" into ub-launcher3-edmonton

parents 5c17a390 49df554d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -330,9 +330,9 @@ public class LauncherIcons implements AutoCloseable {

        mOldBounds.set(icon.getBounds());
        if (Utilities.ATLEAST_OREO && icon instanceof AdaptiveIconDrawable) {
            int offset = Math.max((int)(BLUR_FACTOR * textureWidth), Math.min(left, top));
            int offset = Math.max((int) Math.ceil(BLUR_FACTOR * textureWidth), Math.max(left, top));
            int size = Math.max(width, height);
            icon.setBounds(offset, offset, size, size);
            icon.setBounds(offset, offset, offset + size, offset + size);
        } else {
            icon.setBounds(left, top, left+width, top+height);
        }