* commit '76620791600af3b3d6f6ad8ba3534320265153db': Avoid crashing on corrupted notifications.
This commit is contained in:
@@ -79,7 +79,8 @@ public class NotificationTemplateViewWrapper extends NotificationViewWrapper {
|
||||
|
||||
// If the icon already has a color filter, we assume that we already forced the icon to be
|
||||
// white when we created the notification.
|
||||
mIconForceGraysaleWhenDark = mIcon != null && mIcon.getDrawable().getColorFilter() != null;
|
||||
final Drawable iconDrawable = mIcon != null ? mIcon.getDrawable() : null;
|
||||
mIconForceGraysaleWhenDark = iconDrawable != null && iconDrawable.getColorFilter() != null;
|
||||
}
|
||||
|
||||
private ImageView resolveIcon(ImageView largeIcon, ImageView rightIcon) {
|
||||
|
||||
Reference in New Issue
Block a user