From 5ea19572afe9955555f73a24f0b18f7eb5727bdf Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 29 Nov 2016 15:34:48 -0800 Subject: [PATCH] Fixed a bug where heads up notifications had no icon Test: add heads-up notification Bug: 32437839 Change-Id: I44b81a5f16d7d9d12d51b94f7fc4b000878acbd7 --- .../src/com/android/systemui/statusbar/NotificationShelf.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java index 3423e3bcd7aca..0138ca86c3d3f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java @@ -417,6 +417,9 @@ public class NotificationShelf extends ActivatableNotificationView { iconState.scaleY = 1.0f; iconState.hidden = false; } + if (row.isAboveShelf()) { + iconState.hidden = true; + } } }