mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Fixing null check when calling mutateOnMainThread
Bug: 25269169 Change-Id: I74f7fb833a374f59a16487099f1bf72b086e88ee
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user