ContactsTableViewController: Remove the count in the Local contacts header,

when no search is in progress.
This commit is contained in:
giomfo
2017-01-30 16:58:16 +01:00
parent 0f7c2b877f
commit fd33bbfae1
2 changed files with 9 additions and 1 deletions
@@ -681,7 +681,14 @@
if (section == filteredLocalContactsSection)
{
headerLabel.text = [NSString stringWithFormat:NSLocalizedStringFromTable(@"contacts_address_book_section", @"Vector", nil), filteredLocalContacts.count];
if (currentSearchText.length)
{
headerLabel.text = [NSString stringWithFormat:NSLocalizedStringFromTable(@"contacts_address_book_section", @"Vector", nil), filteredLocalContacts.count];
}
else
{
headerLabel.text = [NSString stringWithFormat:NSLocalizedStringFromTable(@"contacts_address_book_default_section", @"Vector", nil), filteredLocalContacts.count];
}
sectionBitwise = CONTACTS_TABLEVC_LOCALCONTACTS_BITWISE;
}
else //if (section == filteredMatrixContactsSection)