diff options
author | Sarmad Hashmi <mhashmi@google.com> | 2016-03-14 21:17:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-03-14 21:17:39 +0000 |
commit | 1034966af68c4d3ea1c7c7ab4cedbaeb3bce5894 (patch) | |
tree | b912d56c4d814c0db6a010bde81913ac225af545 /src/com | |
parent | c6ed16091cf15c3546d3bd1188e14b8aef935280 (diff) | |
parent | 0d9f9087e5a4a9d93dfc5e2bc691f44db1deebd8 (diff) |
Merge "Potential fix for voicemail icon near dialer but no voicemail." into nyc-dev
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogQueryHandler.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/CallLogQueryHandler.java b/src/com/android/dialer/calllog/CallLogQueryHandler.java index d1591e1f2..cf86bad7f 100644 --- a/src/com/android/dialer/calllog/CallLogQueryHandler.java +++ b/src/com/android/dialer/calllog/CallLogQueryHandler.java @@ -168,8 +168,10 @@ public class CallLogQueryHandler extends NoNullCursorAsyncQueryHandler { public void fetchVoicemailUnreadCount() { if (TelecomUtil.hasReadWriteVoicemailPermissions(mContext)) { + // Only count voicemails that have not been read and have not been deleted. startQuery(QUERY_VOICEMAIL_UNREAD_COUNT_TOKEN, null, Voicemails.CONTENT_URI, - new String[] { Voicemails._ID }, Voicemails.IS_READ + "=0", null, null); + new String[] { Voicemails._ID }, + Voicemails.IS_READ + "=0" + " AND " + Voicemails.DELETED + "=0", null, null); } } |