Change the text if no favorites exist.
Bug: 2102959
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 49aca89..aeea931 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -486,7 +486,7 @@
\n<li><font fgcolor="#ffffffff"><b>Import contacts</b></font> to add contacts from your SIM card\n</li>"
</string>
- <!-- Displayed full screen when the user has no contacts and they are displaying the My Contacts group, and contact syncing is disabled, and there is no sim card (cdma)-->
+ <!-- Displayed full screen when the user has no contacts and they are displaying the My Contacts group, and contact syncing is disabled, and there is no sim card (cdma)-->
<string name="noContactsNoSimHelpText">"You don't have any contacts.\n\nTo add contacts, press <font fgcolor="#ffffffff"><b>Menu</b></font> and select:\n
\n<li><font fgcolor="#ffffffff"><b>New contact</b></font> to create a new contact from scratch\n</li>
\n<li><font fgcolor="#ffffffff"><b>Import contacts</b></font> to add contacts from your SD card\n</li>"
@@ -499,6 +499,14 @@
\n<li><font fgcolor="#ffffffff"><b>Import contacts</b></font> to add contacts from your SD card\n</li>"
</string>
+ <!-- Displayed full screen when the user has no favorites and they are displaying the favorites tab -->
+ <string name="noFavoritesHelpText">"You don't have any favorites.\n
+ \nTo add a contact to your list of favorites:\n
+ \n<li>Touch Contacts\n</li>
+ \n<li>Touch the contact you want to add to your favorites\n</li>
+ \n<li>Touch the star next to the contact\'s name\n</li>"
+ </string>
+
<!-- Activity title for the activity that lets the user choose which groups of contacts to sync from the server -->
<string name="seclectSyncGroups_title">Select groups to sync</string>
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java
index 8bced69..70d6808 100644
--- a/src/com/android/contacts/ContactsListActivity.java
+++ b/src/com/android/contacts/ContactsListActivity.java
@@ -615,6 +615,8 @@
if (mDisplayOnlyPhones) {
empty.setText(getText(R.string.noContactsWithPhoneNumbers));
+ } else if (mMode == MODE_STREQUENT || mMode == MODE_STARRED) {
+ empty.setText(getText(R.string.noFavoritesHelpText));
} else {
boolean hasSim = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE))
.hasIccCard();
@@ -625,7 +627,6 @@
} else {
empty.setText(getText(R.string.noContactsHelpText));
}
-
} else {
if (mSyncEnabled) {
empty.setText(getText(R.string.noContactsNoSimHelpTextWithSync));