From 693d50e7aef79f16519bf9786af68124ffaf5cd8 Mon Sep 17 00:00:00 2001 From: Dmitri Plotnikov Date: Mon, 22 Jun 2009 14:57:31 -0700 Subject: [PATCH] Moving send-to-voicemail and ringtone-uri up to the aggregate level. --- .../android/provider/ContactsContract.java | 41 ++++++------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index b8504f8cba150..5cc33153f2909 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -129,6 +129,19 @@ public final class ContactsContract { */ public static final String STARRED = "starred"; + /** + * A custom ringtone associated with a person. Not always present. + *

Type: TEXT (URI to the ringtone)

+ */ + public static final String CUSTOM_RINGTONE = "custom_ringtone"; + + /** + * Whether the person should always be sent to voicemail. Not always + * present. + *

Type: INTEGER (0 for false, 1 for true)

+ */ + public static final String SEND_TO_VOICEMAIL = "send_to_voicemail"; + /** * Reference to the row in the data table holding the primary phone number. *

Type: INTEGER REFERENCES data(_id)

@@ -146,12 +159,6 @@ public final class ContactsContract { *

Type: INTEGER REFERENCES data(_id)

*/ public static final String PHOTO_ID = "photo_id"; - - /** - * Reference to a row containing custom ringtone and send to voicemail information. - *

Type: INTEGER REFERENCES data(_id)

- */ - public static final String CUSTOM_RINGTONE_ID = "custom_ringtone_id"; } /** @@ -930,28 +937,6 @@ public final class ContactsContract { public static final String NOTE = "data1"; } - /** - * Custom ringtone associated with the contact. - */ - public static final class CustomRingtone implements BaseCommonColumns { - private CustomRingtone() {} - - public static final String CONTENT_ITEM_TYPE = - "vnd.android.cursor.item/custom_ringtone"; - - /** - * Whether to send the number to voicemail. - *

Type: INTEGER (if set, non-0 means true)

- */ - public static final String SEND_TO_VOICEMAIL = "data1"; - - /** - * The ringtone uri. - *

Type: TEXT

- */ - public static final String RINGTONE_URI = "data2"; - } - /** * Group Membership. */