diff options
author | Dan Sandler <dsandler@android.com> | 2015-03-18 18:35:20 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-03-18 18:35:20 +0000 |
commit | fbd99e9fecea1cf467c082d2096cb1c3868685d4 (patch) | |
tree | 89f9b2be5679d02669c1cebfe43276f41eabf8a4 | |
parent | 1265575d8a31f415606cccc39b24466ecae5731d (diff) | |
parent | 76620791600af3b3d6f6ad8ba3534320265153db (diff) | |
download | frameworks_base-fbd99e9fecea1cf467c082d2096cb1c3868685d4.zip frameworks_base-fbd99e9fecea1cf467c082d2096cb1c3868685d4.tar.gz frameworks_base-fbd99e9fecea1cf467c082d2096cb1c3868685d4.tar.bz2 |
am 76620791: am b3a1b663: Merge "Avoid crashing on corrupted notifications." into lmp-mr1-dev
* commit '76620791600af3b3d6f6ad8ba3534320265153db':
Avoid crashing on corrupted notifications.
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationTemplateViewWrapper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationTemplateViewWrapper.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationTemplateViewWrapper.java index 59b62e5..57d162b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationTemplateViewWrapper.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationTemplateViewWrapper.java @@ -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) { |