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/drawer/DrawerAdapter.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/drawer/DrawerAdapter.java')
| -rw-r--r-- | src/com/android/contacts/drawer/DrawerAdapter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/contacts/drawer/DrawerAdapter.java b/src/com/android/contacts/drawer/DrawerAdapter.java index a2ab9f739..f6898b54f 100644 --- a/src/com/android/contacts/drawer/DrawerAdapter.java +++ b/src/com/android/contacts/drawer/DrawerAdapter.java @@ -357,7 +357,8 @@ public class DrawerAdapter extends BaseAdapter { final AccountDisplayInfo displayableAccount = mAccountDisplayFactory.getAccountDisplayInfoFor(item.account); final TextView textView = ((TextView) result.findViewById(R.id.title)); - textView.setText(displayableAccount.getNameLabel()); + textView.setText(mActivity.getPackageName().equals(account.accountType) ? + mActivity.getString(R.string.account_phone) : displayableAccount.getNameLabel()); final boolean activated = account.equals(mSelectedAccount) && mSelectedView == ContactsView.ACCOUNT_VIEW; textView.setTextAppearance(mActivity, activated |
