diff options
author | twyen <twyen@google.com> | 2017-10-18 06:32:50 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-18 06:32:50 +0000 |
commit | be608de8feeb51ccf19c4978d6175c8264659f99 (patch) | |
tree | 27dc6746a0dd1a030f55386f22488e5af1e56bea /java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java | |
parent | 888823b6cceb77ba19de2aaf12ad61c523489b0e (diff) | |
parent | 5cb3ecff08854c7b3da976f7981d1b9c3ff5bee0 (diff) |
Merge "Support bulk inserted voicemails."
am: 5cb3ecff08
Change-Id: I0da752b47176d1da7c329fe082dde69ec98074a3
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); |