Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cd1b5a1 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 20787

* changes:
  Removing primary/default phone number and email on contact from the API.
parents 97732c41 074fbfe6
Loading
Loading
Loading
Loading
+3 −65
Original line number Diff line number Diff line
@@ -176,36 +176,6 @@ public final class ContactsContract {
         */
        public static final String DISPLAY_NAME = "display_name";

        /**
         * Reference to the row in the data table holding the primary phone number.
         * <P>Type: INTEGER REFERENCES data(_id)</P>
         */
        @Deprecated
        public static final String PRIMARY_PHONE_ID = "primary_phone_id";

        /**
         * Reference to the row in the data table holding the default phone number.
         * If the contact has only one phone number, that number is the default one.
         * Otherwise it is the one explicitly selected by the user as primary.
         * <P>Type: INTEGER REFERENCES data(_id)</P>
         */
        public static final String DEFAULT_PHONE_ID = "default_phone_id";

        /**
         * Reference to the row in the data table holding the primary email address.
         * <P>Type: INTEGER REFERENCES data(_id)</P>
         */
        @Deprecated
        public static final String PRIMARY_EMAIL_ID = "primary_email_id";

        /**
         * Reference to the row in the data table holding the default email address.
         * If the contact has only one email address, that address is the default one.
         * Otherwise it is the one explicitly selected by the user as primary.
         * <P>Type: INTEGER REFERENCES data(_id)</P>
         */
        public static final String DEFAULT_EMAIL_ID = "default_email_id";

        /**
         * Reference to the row in the data table holding the photo.
         * <P>Type: INTEGER REFERENCES data(_id)</P>
@@ -225,43 +195,11 @@ public final class ContactsContract {
        public static final String PRESENCE_STATUS = Presence.PRESENCE_STATUS;

        /**
         * The type of data, for example Home or Work.
         * An indicator of whether this contact has at least one phone number. "1" if there is
         * at least one phone number, "0" otherwise.
         * <P>Type: INTEGER</P>
         */
        @Deprecated
        public static final String PRIMARY_PHONE_TYPE = CommonDataKinds.Phone.TYPE;

        /**
         * The type of data, for example Home or Work.
         * <P>Type: INTEGER</P>
         */
        public static final String DEFAULT_PHONE_TYPE = "default_phone_type";

        /**
         * The user defined label for the primary phone.
         * <P>Type: TEXT</P>
         */
        @Deprecated
        public static final String PRIMARY_PHONE_LABEL = CommonDataKinds.Phone.LABEL;

        /**
         * The user defined label for the default phone.
         * <P>Type: TEXT</P>
         */
        public static final String DEFAULT_PHONE_LABEL = "default_phone_label";

        /**
         * The primary phone number.
         * <P>Type: TEXT</P>
         */
        @Deprecated
        public static final String PRIMARY_PHONE_NUMBER = CommonDataKinds.Phone.NUMBER;

        /**
         * The default phone number.
         * <P>Type: TEXT</P>
         */
        public static final String DEFAULT_PHONE_NUMBER = "default_phone_number";
        public static final String HAS_PHONE_NUMBER = "has_phone_number";
    }

    /**