diff options
author | Sarmad Hashmi <mhashmi@google.com> | 2016-03-14 21:42:08 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-03-14 21:42:08 +0000 |
commit | 5a488358b784fb791eb2e71da51a91f96ab2a4d0 (patch) | |
tree | b87488c72a40f6a6e9681ecf6efdfae11202a0b7 /src | |
parent | d79d46adec2f2412a156a2031434488ab8c2949c (diff) | |
parent | 290a699617772faab8cc0c48f322b52ad954462b (diff) |
Merge "Potential fix for voicemail icon near dialer but no voicemail." into nyc-dev am: 1034966af6
am: 290a699617
* commit '290a699617772faab8cc0c48f322b52ad954462b':
Potential fix for voicemail icon near dialer but no voicemail.
Diffstat (limited to 'src')
-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); } } |