Loading src/com/android/launcher3/WidgetPreviewLoader.java +2 −1 Original line number Diff line number Diff line Loading @@ -428,8 +428,9 @@ public class WidgetPreviewLoader { float iconScale = Math.min((float) smallestSide / (appIconSize + 2 * minOffset), scale); try { Drawable icon = mutateOnMainThread(mManager.loadIcon(info, mIconCache)); Drawable icon = mManager.loadIcon(info, mIconCache); if (icon != null) { icon = mutateOnMainThread(icon); int hoffset = (int) ((tileW - appIconSize * iconScale) / 2) + x; int yoffset = (int) ((tileH - appIconSize * iconScale) / 2); icon.setBounds(hoffset, yoffset, Loading Loading
src/com/android/launcher3/WidgetPreviewLoader.java +2 −1 Original line number Diff line number Diff line Loading @@ -428,8 +428,9 @@ public class WidgetPreviewLoader { float iconScale = Math.min((float) smallestSide / (appIconSize + 2 * minOffset), scale); try { Drawable icon = mutateOnMainThread(mManager.loadIcon(info, mIconCache)); Drawable icon = mManager.loadIcon(info, mIconCache); if (icon != null) { icon = mutateOnMainThread(icon); int hoffset = (int) ((tileW - appIconSize * iconScale) / 2) + x; int yoffset = (int) ((tileH - appIconSize * iconScale) / 2); icon.setBounds(hoffset, yoffset, Loading