Guard aginast O for checking AdaptiveIconDrawable
b/37952598 Change-Id: Ief11aa61d804f9ca44ce9199002a6e763b3bf3e9
This commit is contained in:
@@ -265,7 +265,7 @@ public class LauncherIcons {
|
||||
final int top = (textureHeight-height) / 2;
|
||||
|
||||
sOldBounds.set(icon.getBounds());
|
||||
if (icon instanceof AdaptiveIconDrawable) {
|
||||
if (Utilities.isAtLeastO() && icon instanceof AdaptiveIconDrawable) {
|
||||
int offset = Math.min(left, top);
|
||||
int size = Math.max(width, height);
|
||||
icon.setBounds(offset, offset, offset + size, offset + size);
|
||||
|
||||
Reference in New Issue
Block a user