Mark voicemails as not new when marking as read
The voicemail notifications are tracking new voicemails. Once the
voicemail is set as read on the server it should no longer be treated
as new.
Change-Id: I503a8f0eae3aece5388ce8586082b7613ffebd72
Fixes: 30105817
diff --git a/src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java b/src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java
index 9a84232..1c71a23 100644
--- a/src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java
+++ b/src/com/android/phone/vvm/omtp/sync/VoicemailsQueryHelper.java
@@ -21,11 +21,11 @@
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
+import android.provider.CallLog.Calls;
import android.provider.VoicemailContract;
import android.provider.VoicemailContract.Voicemails;
import android.telecom.PhoneAccountHandle;
import android.telecom.Voicemail;
-
import java.util.ArrayList;
import java.util.List;
@@ -174,6 +174,7 @@
Uri uri = ContentUris.withAppendedId(mSourceUri, voicemail.getId());
ContentValues contentValues = new ContentValues();
contentValues.put(Voicemails.IS_READ, "1");
+ contentValues.put(Calls.NEW, false);
mContentResolver.update(uri, contentValues, null, null);
}