summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMatt Garnes <matt@cyngn.com>2015-06-17 15:57:15 -0700
committerRohit Yengisetty <rohit@cyngn.com>2015-12-02 15:44:08 -0800
commit182560ee81a5329e5d110a86e5419ce71d6dc829 (patch)
tree4408c28e8a70c3ff1184df4a4f990a818aa67c7c /src/com
parent2b8d200e295eda07feeee3fa7573251b460cc174 (diff)
downloadpackages_apps_Contacts-182560ee81a5329e5d110a86e5419ce71d6dc829.tar.gz
packages_apps_Contacts-182560ee81a5329e5d110a86e5419ce71d6dc829.tar.bz2
packages_apps_Contacts-182560ee81a5329e5d110a86e5419ce71d6dc829.zip
Fix local account name display for groups.
When the group browse list adapter displays the local phone account, it explicitly does not display the account name. However, when the views are recycled, the previous account name is displayed. Instead, set this to the empty string for the local account. Change-Id: Ibfbb2f4e9edc09ef47e21652743f1572ee2f3495
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/contacts/group/GroupBrowseListAdapter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/contacts/group/GroupBrowseListAdapter.java b/src/com/android/contacts/group/GroupBrowseListAdapter.java
index 0931f3e7a..40a3b6fba 100644
--- a/src/com/android/contacts/group/GroupBrowseListAdapter.java
+++ b/src/com/android/contacts/group/GroupBrowseListAdapter.java
@@ -202,6 +202,8 @@ public class GroupBrowseListAdapter extends BaseAdapter {
// According to the UI SPEC, we will not show the account name for Phone account
if (!PhoneAccountType.ACCOUNT_TYPE.equals(entry.getAccountType())) {
viewCache.accountName.setText(entry.getAccountName());
+ } else {
+ viewCache.accountName.setText("");
}
}