diff options
author | Dan Sandler <dsandler@android.com> | 2015-03-18 23:48:31 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-03-18 23:48:31 +0000 |
commit | 61bc9d535ba664dfda0beffc509ea22644ce77c3 (patch) | |
tree | 45a643d0179a2faf88255aedc2385ecb5a720ba1 /packages/SystemUI/src/com/android/systemui/statusbar | |
parent | 11b7445f9534c952e25b727e5d7fa1007d51e9c9 (diff) | |
parent | b509a809b20d1eae76613b43a93059c32c4a8435 (diff) | |
download | frameworks_base-61bc9d535ba664dfda0beffc509ea22644ce77c3.zip frameworks_base-61bc9d535ba664dfda0beffc509ea22644ce77c3.tar.gz frameworks_base-61bc9d535ba664dfda0beffc509ea22644ce77c3.tar.bz2 |
am b509a809: am fbd99e9f: am 76620791: am b3a1b663: Merge "Avoid crashing on corrupted notifications." into lmp-mr1-dev
* commit 'b509a809b20d1eae76613b43a93059c32c4a8435':
Avoid crashing on corrupted notifications.
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar')
-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) { |