From 1bf47b91179a3ebb43dbf3fa6c21a365f595882d Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Wed, 27 Aug 2014 10:02:23 -0400 Subject: [PATCH] Doze: Better handling for non-default templates. Only apply icon-specific filters if the views are found. Bug:17289392 Change-Id: I23d1542f8e80d8efed2330fff3f86d0e58a54b7c --- .../com/android/systemui/statusbar/NotificationContentView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java index 548e7d2240934..e6eca22e4a2de 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 @@ public class NotificationContentView extends FrameLayout { 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);