[automerger] Fix clipping of adaptive icons Bug:62372639 am: 49df554dc2

Change-Id: If59cb96023914f65fca3d75eb6f3155deeb1932c
This commit is contained in:
Android Build Merger (Role) 2018-05-25 23:30:58 +00:00
commit b7a30c69b3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}