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. */