diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 1e7d7f1d4830c..05937203eb755 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -7812,6 +7812,25 @@ public final class ContactsContract { public static final Uri UPDATE_URI = Uri.withAppendedPath(AUTHORITY_URI, "pinned_position_update"); + /** + *
+ * 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. + *
+ * + *+ * Example: + *
+ * final long contactId = 10; + * resolver.call(ContactsContract.AUTHORITY_URI, PinnedPositions.UNDEMOTE_METHOD, + * String.valueOf(contactId), null); + *+ * + * + */ + public static final String UNDEMOTE_METHOD = "undemote"; + /** * Default value for the pinned position of an unpinned contact. Also equal to * {@link Integer#MAX_VALUE}.