Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ListEntry.java +3 −2 Original line number Diff line number Diff line Loading @@ -44,10 +44,11 @@ public abstract class ListEntry { /** * Should return the "representative entry" for this ListEntry. For NotificationEntries, its * the entry itself. For groups, it should be the summary. This method exists to interface with * the entry itself. For groups, it should be the summary (but if a summary doesn't exist, * this can return null). This method exists to interface with * legacy code that expects groups to also be NotificationEntries. */ public abstract NotificationEntry getRepresentativeEntry(); public abstract @Nullable NotificationEntry getRepresentativeEntry(); @Nullable public GroupEntry getParent() { return mParent; Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/HighPriorityProvider.java +4 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,10 @@ public class HighPriorityProvider { } final NotificationEntry notifEntry = entry.getRepresentativeEntry(); if (notifEntry == null) { return false; } return notifEntry.getRanking().getImportance() >= NotificationManager.IMPORTANCE_DEFAULT || hasHighPriorityCharacteristics(notifEntry) || hasHighPriorityChild(entry); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ListEntry.java +3 −2 Original line number Diff line number Diff line Loading @@ -44,10 +44,11 @@ public abstract class ListEntry { /** * Should return the "representative entry" for this ListEntry. For NotificationEntries, its * the entry itself. For groups, it should be the summary. This method exists to interface with * the entry itself. For groups, it should be the summary (but if a summary doesn't exist, * this can return null). This method exists to interface with * legacy code that expects groups to also be NotificationEntries. */ public abstract NotificationEntry getRepresentativeEntry(); public abstract @Nullable NotificationEntry getRepresentativeEntry(); @Nullable public GroupEntry getParent() { return mParent; Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/HighPriorityProvider.java +4 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,10 @@ public class HighPriorityProvider { } final NotificationEntry notifEntry = entry.getRepresentativeEntry(); if (notifEntry == null) { return false; } return notifEntry.getRanking().getImportance() >= NotificationManager.IMPORTANCE_DEFAULT || hasHighPriorityCharacteristics(notifEntry) || hasHighPriorityChild(entry); Loading