Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74f649a2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Change group ranking."

parents 845dcf04 3fb989b1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -387,8 +387,9 @@ public class RankingHelper implements RankingConfig {
                final NotificationRecord record = notificationList.get(i);
                record.setAuthoritativeRank(i);
                final String groupKey = record.getGroupKey();
                boolean isGroupSummary = record.getNotification().isGroupSummary();
                if (isGroupSummary || !mProxyByGroupTmp.containsKey(groupKey)) {
                NotificationRecord existingProxy = mProxyByGroupTmp.get(groupKey);
                if (existingProxy == null
                        || record.getImportance() > existingProxy.getImportance()) {
                    mProxyByGroupTmp.put(groupKey, record);
                }
            }
+167 −328

File changed.

Preview size limit exceeded, changes collapsed.