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

Commit 3075f6a4 authored by Evan Millar's avatar Evan Millar
Browse files

Display empty text when there are no contacts visible.

-bc triaged bug: http://b/issue?id=2162934

Change-Id: I331918d70282bb2e123da22bc940168c41406326
parent 685fdd50
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2723,7 +2723,9 @@ public class ContactsListActivity extends ListActivity implements
                return 0;
            }
            int superCount = super.getCount();
            if ((mMode & MODE_MASK_SHOW_NUMBER_OF_CONTACTS) != 0) {
            if ((mMode & MODE_MASK_SHOW_NUMBER_OF_CONTACTS) != 0 && superCount > 0) {
                // We don't want to count this header if it's the only thing visible, so that
                // the empty text will display.
                superCount++;
            }
            if (mSuggestionsCursorCount != 0) {