diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-09-11 19:36:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-09-11 19:36:42 +0000 |
commit | fd02ee3e6993b3ed85644333170aec4d3455b78a (patch) | |
tree | e69118e3b35ea6407d96ad4db3e6686efcc64ca8 /java/com/android/dialer/app | |
parent | 5c7c9fe90a6f64adefcc86d24c159b50fb4159e3 (diff) | |
parent | 9abbf7ff9b31dd3420fd2b304b63703b87d843f6 (diff) |
Merge changes Icc92997c,I70c032fd,Ibafdaf5f,Ifd2efcc9,Iba5609ac
* changes:
Fixing transcription crashes caused by job stoppage
Strip trace info for release build.
Load VVM config override before loading anything else
Fix bubble crash when dismiss audio route selector dialog.
Ignore read missed calls and voicemails for notification
Diffstat (limited to 'java/com/android/dialer/app')
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java b/java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java index 43e03e9fd..c749b65ba 100644 --- a/java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java +++ b/java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java @@ -298,7 +298,13 @@ public class CallLogNotificationsQueryHelper { "no READ_CALL_LOG permission, returning null for calls lookup."); return null; } - final String selection = String.format("%s = 1 AND %s = ?", Calls.NEW, Calls.TYPE); + // A call is "new" when: + // NEW is 1. usually set when a new row is inserted + // TYPE matches the query type. + // IS_READ is not 1. A call might be backed up and restored, so it will be "new" to the + // call log, but the user has already read it on another device. + final String selection = + String.format("%s = 1 AND %s = ? AND %s IS NOT 1", Calls.NEW, Calls.TYPE, Calls.IS_READ); final String[] selectionArgs = new String[] {Integer.toString(type)}; try (Cursor cursor = mContentResolver.query( |