diff options
| author | Toha <tohenk@yahoo.com> | 2018-02-13 12:58:31 +0700 |
|---|---|---|
| committer | Semavi Ulusoy <doc.divxm@gmail.com> | 2022-02-06 11:02:19 +0300 |
| commit | 326bc45b14a727e0ade13006a36c7df9c57a2542 (patch) | |
| tree | 975736e6ff2c03c97023d019459f9c1e6315a3d2 /src/com/android/contacts/util/AccountSelectionUtil.java | |
| parent | 59afd52c77b0e2d5bc5b1ae9cd60e8da1cc1ef7b (diff) | |
Contacts: Enable support for device contact.s12.0
Change-Id: I8f2e907deadced5316be5a418dab2538476a4033
Signed-off-by: Toha <tohenk@yahoo.com>
Contacts: Ignore device null account.
As of commit 2cb5e0752a8def94c386a02213c54bb1be4b6344 which adds device contact,
the behavior is correct if there is a google account already setup, otherwise
there are two device contacts shown. So, always ignore null account.
Change-Id: I9f18a45efcaa93b8583013beb5995bf85ae58dcd
Signed-off-by: Toha <tohenk@yahoo.com>
Diffstat (limited to 'src/com/android/contacts/util/AccountSelectionUtil.java')
| -rw-r--r-- | src/com/android/contacts/util/AccountSelectionUtil.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/contacts/util/AccountSelectionUtil.java b/src/com/android/contacts/util/AccountSelectionUtil.java index bfe8a08b3..2b226d0a1 100644 --- a/src/com/android/contacts/util/AccountSelectionUtil.java +++ b/src/com/android/contacts/util/AccountSelectionUtil.java @@ -126,6 +126,8 @@ public class AccountSelectionUtil { text1.setText(accountType.getDisplayLabel(context)); text2.setText(account.name); + text2.setVisibility(context.getPackageName().equals(account.type) ? + View.GONE : View.VISIBLE); icon.setImageDrawable(accountType.getDisplayIcon(getContext())); return convertView; |
