diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-10-18 06:28:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-10-18 06:28:36 +0000 |
commit | 5cb3ecff08854c7b3da976f7981d1b9c3ff5bee0 (patch) | |
tree | dd54827288a08600f58ac0aed849e179fcddd8df /java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java | |
parent | 7a168cbe0086ec54454a1692b7c128ba12145d4d (diff) | |
parent | 639943a7668ad4229942e1207128045d49e9ed02 (diff) |
Merge "Support bulk inserted voicemails."
Diffstat (limited to 'java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java')
-rw-r--r-- | java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java b/java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java index e30623bb2..77b4c1113 100644 --- a/java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java +++ b/java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java @@ -67,7 +67,7 @@ class VisualVoicemailUpdateTask implements Worker<VisualVoicemailUpdateTask.Inpu // Query failed, just return return; } - + boolean shouldAlert = !voicemailsToNotify.isEmpty(); voicemailsToNotify.addAll(getAndUpdateVoicemailsWithExistingNotification(context, queryHelper)); voicemailsToNotify = filterBlockedNumbers(context, queryHandler, voicemailsToNotify); if (voicemailsToNotify.isEmpty()) { @@ -100,7 +100,8 @@ class VisualVoicemailUpdateTask implements Worker<VisualVoicemailUpdateTask.Inpu } } } - VisualVoicemailNotifier.showNotifications(context, voicemailsToNotify, contactInfos, callers); + VisualVoicemailNotifier.showNotifications( + context, voicemailsToNotify, contactInfos, callers, shouldAlert); // Set trigger to update notifications when database changes. VoicemailNotificationJobService.scheduleJob(context); |