commit | 2ffa02fcbb6359630a09e3d8617c514330ee31f1 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Mon Mar 06 15:56:37 2017 -0800 |
committer | Selim Cinek <cinek@google.com> | Mon Mar 06 16:11:08 2017 -0800 |
tree | db4ba6afa546b99ecbb726a44481c4e7d4334167 | |
parent | 3aa3a007f841b7f1aea7d376cfe1c0ca76919854 [diff] [blame] |
Fixed a crash when creating a public notification group The method whether it was showing an icon was wrong runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java Fixes: 35981843 Change-Id: Ieffeb7480960586fc644e04baaa0c28e98df7736
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index bfe4bb2..6cd05e1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
@@ -905,12 +905,7 @@ if (areGutsExposed()) { return false; } - if (mIsSummaryWithChildren) { - return true; - } - NotificationContentView showingLayout = getShowingLayout(); - NotificationHeaderView notificationHeader = showingLayout.getVisibleNotificationHeader(); - return notificationHeader != null; + return getVisibleNotificationHeader() != null; } /**