Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1034966a authored by Sarmad Hashmi's avatar Sarmad Hashmi Committed by Android (Google) Code Review
Browse files

Merge "Potential fix for voicemail icon near dialer but no voicemail." into nyc-dev

parents c6ed1609 0d9f9087
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
        }
    }