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

Commit 62b83b7f authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Deprecate extra gd:structuredPostalAddress fields.

For the purposes of contact data, there are some postal
address columns that are unsupported, since they don't
directly contribute to a "mailing address" for a person.

http://code.google.com/apis/contacts/docs/3.0/reference.html#structuredPostalAddressRestrictions
http://code.google.com/apis/gdata/docs/2.0/elements.html#gdStructuredPostalAddress
parent b43aefba
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -795,7 +795,10 @@ public final class ContactsContract {

            /**
             * The name that should be used to display the contact.
             * <P>Type: TEXT</P>
             * <i>Unstructured component of the name should be consistent with
             * its structured representation.</i>
             * <p>
             * Type: TEXT
             */
            public static final String DISPLAY_NAME = "data9";
        }
@@ -944,7 +947,8 @@ public final class ContactsContract {
            public static final int TYPE_OTHER = 3;

            /**
             * The full, unstructured postal address.
             * The full, unstructured postal address. <i>This field must be
             * consistent with any structured data.</i>
             * <p>
             * Type: TEXT
             */
@@ -955,7 +959,9 @@ public final class ContactsContract {
             * Also for 'in care of' or 'c/o'.
             * <p>
             * Type: TEXT
             * @deprecated since this isn't supported by gd:structuredPostalAddress
             */
            @Deprecated
            public static final String AGENT = "data4";

            /**
@@ -963,7 +969,9 @@ public final class ContactsContract {
             * necessarily numbers), eg. "The Pillars".
             * <p>
             * Type: TEXT
             * @deprecated since this isn't supported by gd:structuredPostalAddress
             */
            @Deprecated
            public static final String HOUSENAME = "data5";

            /**
@@ -1006,7 +1014,9 @@ public final class ContactsContract {
             * intended for delivery addresses.
             * <p>
             * Type: TEXT
             * @deprecated since this isn't supported by gd:structuredPostalAddress
             */
            @Deprecated
            public static final String SUBREGION = "data10";

            /**