Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4455409 authored by Neel Parekh's avatar Neel Parekh Committed by Jeff Sharkey
Browse files

Change the text if no favorites exist.

Bug: 2102959
parent 242599a0
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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>

+2 −1
Original line number Diff line number Diff line
@@ -615,6 +615,8 @@ public final class ContactsListActivity extends ListActivity implements

        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 @@ public final class ContactsListActivity extends ListActivity implements
                } else {
                    empty.setText(getText(R.string.noContactsHelpText));
                }

            } else {
                if (mSyncEnabled) {
                    empty.setText(getText(R.string.noContactsNoSimHelpTextWithSync));