Merge "Log an error when loading an icon fails" into ub-launcher3-dorval-polish

This commit is contained in:
Tony Wickham authored and Android (Google) Code Review committed 2017-06-28 17:37:09 +00:00
commit 59fbea393b
1 file changed
+4
@@ -184,9 +184,13 @@ public class LoaderCursor extends CursorWrapper {
icon = LauncherIcons.createIconBitmap(
BitmapFactory.decodeByteArray(data, 0, data.length), mContext);
} catch (Exception e) {
Log.e(TAG, "Failed to load icon for info " + info, e);
return null;
}
}
if (icon == null) {
Log.e(TAG, "Failed to load icon for info " + info);
}
return icon;
}