diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2017-05-03 15:39:26 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2017-05-03 15:39:26 -0700 |
commit | 8f4a3963b0bc0f98773bf34a3ff2989677d43e96 (patch) | |
tree | 856c53cc5920f284c68be579efdee58186bc1942 /src | |
parent | f436478b0238808c2a9323ac1b16bf780f7eeb46 (diff) | |
download | android_packages_apps_Trebuchet-8f4a3963b0bc0f98773bf34a3ff2989677d43e96.tar.gz android_packages_apps_Trebuchet-8f4a3963b0bc0f98773bf34a3ff2989677d43e96.tar.bz2 android_packages_apps_Trebuchet-8f4a3963b0bc0f98773bf34a3ff2989677d43e96.zip |
Guard aginast O for checking AdaptiveIconDrawable
b/37952598
Change-Id: Ief11aa61d804f9ca44ce9199002a6e763b3bf3e9
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/graphics/LauncherIcons.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/graphics/LauncherIcons.java b/src/com/android/launcher3/graphics/LauncherIcons.java index 746a639ff..53521f22d 100644 --- a/src/com/android/launcher3/graphics/LauncherIcons.java +++ b/src/com/android/launcher3/graphics/LauncherIcons.java @@ -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); |