summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSarmad Hashmi <mhashmi@google.com>2016-03-14 13:29:43 -0700
committerSarmad Hashmi <mhashmi@google.com>2016-03-14 13:30:46 -0700
commit0d9f9087e5a4a9d93dfc5e2bc691f44db1deebd8 (patch)
tree659c102d8ce46281916287360c731a8efb12a221 /src
parent9df658ca49c4b4571fca91eef7920e6d974ecc85 (diff)
Potential fix for voicemail icon near dialer but no voicemail.
+Only count voicemails that are unread and have not been marked for deletion. BUG=27548694 Change-Id: I8d6707087bd4a400eb073ac4c2c7e2689a065052
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/calllog/CallLogQueryHandler.java4
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);
}
}