From af0f89ff913f91d97d5226fc48947cab92be4cbe Mon Sep 17 00:00:00 2001 From: Zoltan Szatmary-Ban Date: Tue, 30 Sep 2014 16:30:07 +0100 Subject: [PATCH] Disambiguate categories in Settings > Trusted Credentials Use fixed category names (e.g. 'Personal' and 'Work') on Trusted Credentials screen instead of names of profiles that may be the same (or similar) for both. Bug: 17629895 Change-Id: I25b39310f7b9f445d2724be046a16cc82f5d1a9a --- src/com/android/settings/TrustedCredentialsSettings.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/TrustedCredentialsSettings.java b/src/com/android/settings/TrustedCredentialsSettings.java index 4efbe02abcf..5ec513fbdfd 100644 --- a/src/com/android/settings/TrustedCredentialsSettings.java +++ b/src/com/android/settings/TrustedCredentialsSettings.java @@ -316,7 +316,11 @@ public class TrustedCredentialsSettings extends Fragment { final TextView title = (TextView) convertView.findViewById(android.R.id.title); final UserHandle profile = getGroup(groupPosition); final UserInfo userInfo = mUserManager.getUserInfo(profile.getIdentifier()); - title.setText(userInfo.name); + if (userInfo.isManagedProfile()) { + title.setText(R.string.category_work); + } else { + title.setText(R.string.category_personal); + } title.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_END); return convertView;