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

Commit ceaafa5f authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Adding a new type: aggregation_exception.

parent 23306f60
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
@@ -706,4 +706,47 @@ public final class ContactsContract {
        }
    }

    /**
     * Constants for the contact aggregation exceptions table, which contains
     * aggregation rules overriding those used by automatic aggregation.
     */
    public static final class AggregationExceptions {
        /**
         * This utility class cannot be instantiated
         */
        private AggregationExceptions() {}

        /**
         * The content:// style URI for this table
         */
        public static final Uri CONTENT_URI =
                Uri.withAppendedPath(AUTHORITY_URI, "aggregation_exception");

        /**
         * The MIME type of {@link #CONTENT_URI} providing a directory of data.
         */
        public static final String CONTENT_TYPE = "vnd.android.cursor.dir/aggregation_exception";

        /**
         * The type of exception: {@link #TYPE_NEVER_MATCH} or {@link #TYPE_ALWAYS_MATCH}.
         *
         * <P>Type: INTEGER</P>
         */
        public static final String TYPE = "type";

        public static final int TYPE_NEVER_MATCH = 0;
        public static final int TYPE_ALWAYS_MATCH = 1;

        /**
         * A reference to the {@link android.provider.ContactsContract.Contacts#_ID} of one of
         * the contacts that the rule applies to.
         */
        public static final String CONTACT_ID1 = "contact_id1";

        /**
         * A reference to the {@link android.provider.ContactsContract.Contacts#_ID} of the other
         * contact that the rule applies to.
         */
        public static final String CONTACT_ID2 = "contact_id2";
    }
}