From 1ba33dfd8ce77fa346d691081301feb1f8dfcd0a Mon Sep 17 00:00:00 2001 From: Ta-wei Yen Date: Tue, 9 Jan 2018 16:56:07 -0800 Subject: Allow Voicemails to be inserted as not new. Inserting voicemails as new will cause dialer to send notifications to the user. For initial syncs this is undesirable. Previously the NEW colunm is only available to call log. Change-Id: Ie9091d23082a333753760b194475b3d1b8b11917 Fixes: 69482089 Test: CTS --- api/current.txt | 1 + core/java/android/provider/VoicemailContract.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/api/current.txt b/api/current.txt index 8a09b82bf770..136890f67796 100644 --- a/api/current.txt +++ b/api/current.txt @@ -36170,6 +36170,7 @@ package android.provider { field public static final java.lang.String ITEM_TYPE = "vnd.android.cursor.item/voicemail"; field public static final java.lang.String LAST_MODIFIED = "last_modified"; field public static final java.lang.String MIME_TYPE = "mime_type"; + field public static final java.lang.String NEW = "new"; field public static final java.lang.String NUMBER = "number"; field public static final java.lang.String PHONE_ACCOUNT_COMPONENT_NAME = "subscription_component_name"; field public static final java.lang.String PHONE_ACCOUNT_ID = "subscription_id"; diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java index 6a3c55efda8a..70de9ee49d94 100644 --- a/core/java/android/provider/VoicemailContract.java +++ b/core/java/android/provider/VoicemailContract.java @@ -171,6 +171,11 @@ public class VoicemailContract { *

Type: INTEGER (long)

*/ public static final String DURATION = Calls.DURATION; + /** + * Whether or not the voicemail has been acknowledged (notification sent to the user). + *

Type: INTEGER (boolean)

+ */ + public static final String NEW = Calls.NEW; /** * Whether this item has been read or otherwise consumed by the user. *

Type: INTEGER (boolean)

-- cgit v1.2.3-59-g8ed1b