diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-05-18 20:22:03 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-18 20:22:03 +0000 |
commit | 619080d929b914e218bd32aa30287a67bf10551b (patch) | |
tree | b06adc296ac3ce728b01653c4932984aac857f71 /java/com/android/dialer/app/calllog/MissedCallNotifier.java | |
parent | 10ac0aafddc6f8610ea6c5c5c831692da4b5439d (diff) | |
parent | bd2899608c69691e4da65fac499c6fe228b9b86c (diff) |
Merge "Don't post throttled notifications again."
Diffstat (limited to 'java/com/android/dialer/app/calllog/MissedCallNotifier.java')
-rw-r--r-- | java/com/android/dialer/app/calllog/MissedCallNotifier.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/java/com/android/dialer/app/calllog/MissedCallNotifier.java b/java/com/android/dialer/app/calllog/MissedCallNotifier.java index 2cd0f775c..f671fb7fd 100644 --- a/java/com/android/dialer/app/calllog/MissedCallNotifier.java +++ b/java/com/android/dialer/app/calllog/MissedCallNotifier.java @@ -229,15 +229,20 @@ public class MissedCallNotifier implements Worker<Pair<Integer, String>, Void> { if (useCallList) { // Do not repost active notifications to prevent erasing post call notes. - Set<String> activeTags = new ArraySet<>(); + Set<String> activeAndThrottledTags = new ArraySet<>(); for (StatusBarNotification activeNotification : DialerNotificationManager.getActiveNotifications(context)) { - activeTags.add(activeNotification.getTag()); + activeAndThrottledTags.add(activeNotification.getTag()); + } + // Do not repost throttled notifications + for (StatusBarNotification throttledNotification : + DialerNotificationManager.getThrottledNotificationSet()) { + activeAndThrottledTags.add(throttledNotification.getTag()); } for (NewCall call : newCalls) { String callTag = getNotificationTagForCall(call); - if (!activeTags.contains(callTag)) { + if (!activeAndThrottledTags.contains(callTag)) { DialerNotificationManager.notify( context, callTag, |