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

Commit 2868d7ca authored by Hyunyoung Song's avatar Hyunyoung Song Committed by android-build-merger
Browse files

Guard aginast O for checking AdaptiveIconDrawable b/37952598

am: 8f4a3963

Change-Id: I88f5ff89d7cb5f021f857295db89520100d044ae
parents d2d43ef9 8f4a3963
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);