Use different strings for list header
Bug 30189545
Change-Id: Iddcacad2af15b09083e7da1692ceaddb10db20e6
diff --git a/src/com/android/contacts/list/MultiSelectContactsListFragment.java b/src/com/android/contacts/list/MultiSelectContactsListFragment.java
index bad44eb..6fd15e9 100644
--- a/src/com/android/contacts/list/MultiSelectContactsListFragment.java
+++ b/src/com/android/contacts/list/MultiSelectContactsListFragment.java
@@ -327,14 +327,13 @@
// Set text of count of contacts and account name (if it's a Google account)
final TextView accountFilterHeader = (TextView) accountFilterContainer.findViewById(
R.id.account_filter_header);
- final String headerText = String.format(context.getResources().getQuantityString(
- R.plurals.contacts_count, memberCount), memberCount);
- final StringBuilder sb = new StringBuilder(headerText);
- if (GoogleAccountType.ACCOUNT_TYPE.equals(accountWithDataSet.type)) {
- sb.append(" \u00B7 "); // Unicode character 'MIDDLE DOT'
- sb.append(accountWithDataSet.name);
- }
- accountFilterHeader.setText(sb.toString());
+ final String headerText = GoogleAccountType.ACCOUNT_TYPE.equals(accountWithDataSet.type)
+ ? String.format(context.getResources().getQuantityString(
+ R.plurals.contacts_count_with_account, memberCount),
+ memberCount, accountWithDataSet.name)
+ : context.getResources().getQuantityString(
+ R.plurals.contacts_count, memberCount, memberCount);
+ accountFilterHeader.setText(headerText);
accountFilterHeader.setAllCaps(false);
// Set icon of the account