commit | ca2ba798fbab5d142a53eb08e19fc261af9663eb | [log] [tgz] |
---|---|---|
author | John Spurlock <jspurlock@google.com> | Wed Aug 27 10:02:23 2014 -0400 |
committer | The Android Automerger <android-build@android.com> | Thu Aug 28 16:44:17 2014 -0700 |
tree | cb24b5b435eb1ae0c39179fc34838180f166275d | |
parent | 629fca2af46ab22768addeebae3dd4ecd94b6362 [diff] |
Doze: Better handling for non-default templates. Only apply icon-specific filters if the views are found. Bug:17289392 Change-Id: I23d1542f8e80d8efed2330fff3f86d0e58a54b7c
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java index ec45e91..8b4c2c4 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
@@ -211,6 +211,7 @@ private void setImageViewDark(boolean dark, boolean fade, int imageViewId) { // TODO: implement fade final ImageView v = (ImageView) mContractedChild.findViewById(imageViewId); + if (v == null) return; final Drawable d = v.getBackground(); if (dark) { v.setLayerType(LAYER_TYPE_HARDWARE, INVERT_PAINT);