Merge "Log an error when loading an icon fails" into ub-launcher3-dorval-polish
am: 59fbea393b
Change-Id: I78a41165348675240ad7970aec6dfd6f69dca6e8
This commit is contained in:
commit
60c7239346
|
@ -184,9 +184,13 @@ public class LoaderCursor extends CursorWrapper {
|
||||||
icon = LauncherIcons.createIconBitmap(
|
icon = LauncherIcons.createIconBitmap(
|
||||||
BitmapFactory.decodeByteArray(data, 0, data.length), mContext);
|
BitmapFactory.decodeByteArray(data, 0, data.length), mContext);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Log.e(TAG, "Failed to load icon for info " + info, e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (icon == null) {
|
||||||
|
Log.e(TAG, "Failed to load icon for info " + info);
|
||||||
|
}
|
||||||
return icon;
|
return icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue