summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-06-25 16:22:08 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-06-25 16:22:08 -0700
commit8df2770995e84ac18d74bf5f5c2e3b53d3ba5807 (patch)
tree3e8b3d61519937d9bdae524d5b2e925e603b53ee
parent7f94b60c6d22a0dad41cdbc4fadfc0bc70a8ebac (diff)
parentc043752ca3cdd71fbee868a351881bd4272c31a7 (diff)
Merge change 5234
* changes: Adds precedence information to the CommonDataKinds.Im class.
-rw-r--r--core/java/android/provider/ContactsContract.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java
index 1ed0574046e4..b8504f8cba15 100644
--- a/core/java/android/provider/ContactsContract.java
+++ b/core/java/android/provider/ContactsContract.java
@@ -16,6 +16,9 @@
package android.provider;
+import java.util.Arrays;
+import java.util.List;
+
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.net.Uri;
@@ -521,6 +524,18 @@ public final class ContactsContract {
}
/**
+ * Returns the precedence of the status code the higher number being the higher precedence.
+ *
+ * @param status The status code.
+ * @return An integer representing the precedence, 0 being the lowest.
+ */
+ public static final int getPresencePrecedence(int status) {
+ // Keep this function here incase we want to enforce a different precedence than the
+ // natural order of the status constants.
+ return status;
+ }
+
+ /**
* The MIME type of {@link #CONTENT_URI} providing a directory of
* presence details.
*/