Change-Id: I04c171424006d90321c707d124211f007159c774
}
public Drawable getFullResIcon(Resources resources, int iconId) {
+ Drawable d;
try {
- return resources.getDrawableForDensity(iconId, mIconDpi);
+ d = resources.getDrawableForDensity(iconId, mIconDpi);
} catch (Resources.NotFoundException e) {
- return getFullResDefaultActivityIcon();
+ d = null;
}
+
+ return (d != null) ? d : getFullResDefaultActivityIcon();
}
public Drawable getFullResIcon(ResolveInfo info, PackageManager packageManager) {