am b3a1b663: Merge "Avoid crashing on corrupted notifications." into lmp-mr1-dev
* commit 'b3a1b6632e403926fed995e851a8e44fc944c663': 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
|
// If the icon already has a color filter, we assume that we already forced the icon to be
|
||||||
// white when we created the notification.
|
// 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) {
|
private ImageView resolveIcon(ImageView largeIcon, ImageView rightIcon) {
|
||||||
|
|||||||
Reference in New Issue
Block a user