}
public Bitmap getNotificationIcon(Bitmap icon) {
+ if (icon == null) return null;
int originalWidth = icon.getWidth();
int originalHeight = icon.getHeight();
if (originalWidth == 0 || originalHeight == 0) {
iconRes = android.R.drawable.sym_def_app_icon;
}
builder.setSmallIcon(iconRes);
- builder.setLargeIcon(getNotificationIcon(icon));
+ Bitmap bigIcon = getNotificationIcon(icon);
+ if (bigIcon != null) builder.setLargeIcon(bigIcon);
Context activity = mView.getActivity();
String category = getCategoryFromNotificationId(notificationId);