Merge "Revert "Load the raw contact's photo in picker dialog"" into ub-contactsdialer-h-dev
diff --git a/src/com/android/contacts/common/model/SimCard.java b/src/com/android/contacts/common/model/SimCard.java
index c316ec4..2d17cd4 100644
--- a/src/com/android/contacts/common/model/SimCard.java
+++ b/src/com/android/contacts/common/model/SimCard.java
@@ -118,6 +118,18 @@
         return mCountryCode;
     }
 
+    /**
+     * Returns whether the contacts for this SIM card have been initialized.
+     */
+    public boolean areContactsAvailable() {
+        return mContacts != null;
+    }
+
+    /**
+     * Returns whether this SIM card has any SIM contacts.
+     *
+     * A precondition of this method is that the contacts have been initialized.
+     */
     public boolean hasContacts() {
         if (mContacts == null) {
             throw new IllegalStateException("Contacts not loaded.");
@@ -125,6 +137,11 @@
         return !mContacts.isEmpty();
     }
 
+    /**
+     * Returns the number of contacts stored on this SIM card.
+     *
+     * A precondition of this method is that the contacts have been initialized.
+     */
     public int getContactCount() {
         if (mContacts == null) {
             throw new IllegalStateException("Contacts not loaded.");
@@ -148,6 +165,9 @@
         return !isDismissed() && !isImported() && hasContacts();
     }
 
+    /**
+     * Returns the contacts for this SIM card or null if the contacts have not been initialized.
+     */
     public List<SimContact> getContacts() {
         return mContacts;
     }