summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-06-03 21:23:11 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-06-03 21:23:11 -0700
commit261dbd77063dd8ed00202ae11167d9cd67059fa1 (patch)
treeadfdcc1c3c7fd081da3bb184d2d5b0033f9432b6
parent33c824d17bf414aef93141ce91bc2771b8a3246e (diff)
parentab5742dd63f4e62ee0f55f786854c024ef8c5bb4 (diff)
Merge change 2978
* changes: Adds "is_primary" and "is_super_primary" columns to DataColumns.
-rw-r--r--core/java/android/provider/ContactsContract.java25
1 files changed, 13 insertions, 12 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java
index 835a5f646e51..62e95e8ab749 100644
--- a/core/java/android/provider/ContactsContract.java
+++ b/core/java/android/provider/ContactsContract.java
@@ -290,6 +290,19 @@ public final class ContactsContract {
*/
public static final String CONTACT_ID = "contact_id";
+ /**
+ * Whether this is the primary entry of its kind for the contact it belongs to
+ * <P>Type: INTEGER (if set, non-0 means true)</P>
+ */
+ public static final String IS_PRIMARY = "is_primary";
+
+ /**
+ * Whether this is the primary entry of its kind for the aggregate it belongs to. Any data
+ * record that is "super primary" must also be "primary".
+ * <P>Type: INTEGER (if set, non-0 means true)</P>
+ */
+ public static final String IS_SUPER_PRIMARY = "is_super_primary";
+
/** Generic data column, the meaning is {@link #MIMETYPE} specific */
public static final String DATA1 = "data1";
/** Generic data column, the meaning is {@link #MIMETYPE} specific */
@@ -409,12 +422,6 @@ public final class ContactsContract {
* <P>Type: TEXT</P>
*/
public static final String LABEL = "data3";
-
- /**
- * Whether this is the primary entry of its kind for the contact it belongs to
- * <P>Type: INTEGER (if set, non-0 means true)</P>
- */
- public static final String ISPRIMARY = "data4";
}
/**
@@ -642,12 +649,6 @@ public final class ContactsContract {
* <P>Type: TEXT</P>
*/
public static final String TITLE = "data4";
-
- /**
- * Whether this is the primary organization
- * <P>Type: INTEGER (if set, non-0 means true)</P>
- */
- public static final String ISPRIMARY = "data5";
}
/**