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

am: 59fbea393b

Change-Id: I78a41165348675240ad7970aec6dfd6f69dca6e8
This commit is contained in:
Tony Wickham 2017-06-28 17:40:41 +00:00 committed by android-build-merger
commit 60c7239346
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}