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

Commit 2e58ab76 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Add UNDEMOTE_METHOD to ContactsContract"

parents 17e64ffd 0e040b0e
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -7812,6 +7812,25 @@ public final class ContactsContract {
        public static final Uri UPDATE_URI = Uri.withAppendedPath(AUTHORITY_URI,
                "pinned_position_update");

        /**
         * <p>
         * The method to invoke in order to undemote a formerly demoted contact. The contact id of
         * the contact must be provided as an argument. If the contact was not previously demoted,
         * nothing will be done.
         * </p>
         *
         * <p>
         * Example:
         * <pre>
         * final long contactId = 10;
         * resolver.call(ContactsContract.AUTHORITY_URI, PinnedPositions.UNDEMOTE_METHOD,
         *         String.valueOf(contactId), null);
         * </pre>
         *
         * </p>
         */
        public static final String UNDEMOTE_METHOD = "undemote";

        /**
         * Default value for the pinned position of an unpinned contact. Also equal to
         * {@link Integer#MAX_VALUE}.