diff --git a/api/current.txt b/api/current.txt index a94d10bf32cab..668d5daf6054d 100644 --- a/api/current.txt +++ b/api/current.txt @@ -24846,7 +24846,7 @@ package android.provider { ctor public ContactsContract.PinnedPositions(); field public static final int DEMOTED = -1; // 0xffffffff field public static final java.lang.String UNDEMOTE_METHOD = "undemote"; - field public static final int UNPINNED = 2147483647; // 0x7fffffff + field public static final int UNPINNED = 0; // 0x0 } public static final deprecated class ContactsContract.Presence extends android.provider.ContactsContract.StatusUpdates { diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index 762e1ee257742..03863ae7ff41d 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -8033,9 +8033,8 @@ public final class ContactsContract { * *

* By default, unpinned contacts will have a pinned position of - * {@link PinnedPositions#UNPINNED}, or {@link Integer#MAX_VALUE} (2^31 - 1). Client-provided - * pinned positions can be positive integers that range anywhere from 0 to - * {@link PinnedPositions#UNPINNED}. + * {@link PinnedPositions#UNPINNED}. Client-provided pinned positions can be positive + * integers that are greater than 1. *

*/ public static final class PinnedPositions { @@ -8058,10 +8057,9 @@ public final class ContactsContract { public static final String UNDEMOTE_METHOD = "undemote"; /** - * Default value for the pinned position of an unpinned contact. Also equal to - * {@link Integer#MAX_VALUE}. + * Default value for the pinned position of an unpinned contact. Also equal to 0. */ - public static final int UNPINNED = 0x7FFFFFFF; + public static final int UNPINNED = 0; /** * Value of pinned position for a contact that a user has indicated should be considered