commit | 42d5498bc332c766d58178979bfaab27a3ae34ea | [log] [tgz] |
---|---|---|
author | Yining Liu <liuyining@google.com> | Thu Oct 19 21:33:36 2023 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Oct 19 21:33:36 2023 +0000 |
tree | 21b5a723c4578542d117e98365b0e9f9b9869853 | |
parent | c5344a35d77294cc0f40af76578a3522d767530b [diff] | |
parent | cf8fb3b5b59048792b1e1e9ebf65e55ce406df12 [diff] |
Merge "Rename NotificationEntry.isChildInGroup()" into main
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotificationEntry.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotificationEntry.java index 4573d59..cfe9fbe 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotificationEntry.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotificationEntry.java
@@ -748,7 +748,11 @@ return row != null && row.getGuts() != null && row.getGuts().isExposed(); } - public boolean isChildInGroup() { + /** + * @return Whether the notification row is a child of a group notification view; false if the + * row is null + */ + public boolean rowIsChildInGroup() { return row != null && row.isChildInGroup(); }
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java index 6b4382f73..f4862c7 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpManagerPhone.java
@@ -175,7 +175,7 @@ if (!hasPinnedHeadsUp() || topEntry == null) { return null; } else { - if (topEntry.isChildInGroup()) { + if (topEntry.rowIsChildInGroup()) { final NotificationEntry groupSummary = mGroupMembershipManager.getGroupSummary(topEntry); if (groupSummary != null) {