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

Commit 0e040b0e authored by Yorke Lee's avatar Yorke Lee
Browse files

Add UNDEMOTE_METHOD to ContactsContract

Bug: 15593967
Change-Id: I9404107d65a0e6ac5f58dd5dd4b6b5df519ec20f
parent 4961bc88
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}.