summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/providers/contacts/VoicemailContentTable.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/providers/contacts/VoicemailContentTable.java b/src/com/android/providers/contacts/VoicemailContentTable.java
index 20bc790..8915959 100644
--- a/src/com/android/providers/contacts/VoicemailContentTable.java
+++ b/src/com/android/providers/contacts/VoicemailContentTable.java
@@ -106,6 +106,10 @@ public class VoicemailContentTable implements VoicemailTable.Delegate {
// call type is always voicemail.
copiedValues.put(Calls.TYPE, Calls.VOICEMAIL_TYPE);
+ // By default marked as new, unless explicitly overridden.
+ if (!values.containsKey(Calls.NEW)) {
+ copiedValues.put(Calls.NEW, 1);
+ }
SQLiteDatabase db = mDbHelper.getWritableDatabase();
long rowId = getDatabaseModifier(db).insert(mTableName, null, copiedValues);