commit | 3075f6a408768cac749edb786feac71afa7d7b64 | [log] [tgz] |
---|---|---|
author | Evan Millar <emillar@google.com> | Tue Oct 06 13:34:15 2009 -0700 |
committer | Evan Millar <emillar@google.com> | Tue Oct 06 15:53:39 2009 -0700 |
tree | fa2c4c015f0db14c8c92f733a663c507a42409ed | |
parent | 685fdd508523225bcb52a862c530b3cd6dd30cb0 [diff] |
Display empty text when there are no contacts visible. -bc triaged bug: http://b/issue?id=2162934 Change-Id: I331918d70282bb2e123da22bc940168c41406326
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java index 78ab07e..0dcfc53 100644 --- a/src/com/android/contacts/ContactsListActivity.java +++ b/src/com/android/contacts/ContactsListActivity.java
@@ -2723,7 +2723,9 @@ 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) {