diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-03-30 00:46:30 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-30 00:46:30 +0000 |
commit | d3d4066fff2aa9a7c1ace76b193a06a9ce7e5c2d (patch) | |
tree | 0671af080bacb036ac8dc2813fb25dd472851f50 /java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java | |
parent | 8bb8b998f6398f7a6ffe9cf6b957b0d132d3c268 (diff) | |
parent | d6a2f81c52918e1d988979c83dcb779087c2ed13 (diff) |
Merge "Mark spam voicemail as old after we auto block it."
Diffstat (limited to 'java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java')
-rw-r--r-- | java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java b/java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java index b353b3abc..bae30fa7b 100644 --- a/java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java +++ b/java/com/android/dialer/app/calllog/VisualVoicemailUpdateTask.java @@ -212,6 +212,10 @@ class VisualVoicemailUpdateTask implements Worker<VisualVoicemailUpdateTask.Inpu "found voicemail from spam number, suppressing notification"); Logger.get(context) .logImpression(DialerImpression.Type.INCOMING_VOICEMAIL_AUTO_BLOCKED_AS_SPAM); + if (newCall.voicemailUri != null) { + // Mark auto blocked voicemail as old so that we don't process it again. + VoicemailQueryHandler.markSingleNewVoicemailAsOld(context, newCall.voicemailUri); + } } else { result.add(newCall); } |