From 7c4dfccda44efa98b804dd5d07cd28e9e5761ca3 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Wed, 22 May 2013 12:51:30 -0700 Subject: [PATCH] Update strings for clarity about restricted profiles Bug: 9051422 Bug: 9051178 Change-Id: I1b88286fdd0db27bb6980d0ebbc846370fd0082e --- res/values/strings.xml | 4 ++-- src/com/android/settings/users/UserSettings.java | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 1466ca6261c..dbdec2d53a9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4351,7 +4351,7 @@ Users have their own apps and content - Restricted profiles can only access the apps and content from your accounts + You can restrict access to apps and content from your account User @@ -4474,7 +4474,7 @@ Select the types of emergency alerts to display. - Allow apps and content + Application and content restrictions RENAME diff --git a/src/com/android/settings/users/UserSettings.java b/src/com/android/settings/users/UserSettings.java index 8961500f9cb..a19158f047b 100644 --- a/src/com/android/settings/users/UserSettings.java +++ b/src/com/android/settings/users/UserSettings.java @@ -376,13 +376,9 @@ public class UserSettings extends SettingsPreferenceFragment Bundle extras = new Bundle(); extras.putInt(AppRestrictionsFragment.EXTRA_USER_ID, userId); extras.putBoolean(AppRestrictionsFragment.EXTRA_NEW_USER, newUser); - String title = getResources().getString(R.string.user_new_user_name); - if (userId > UserHandle.USER_OWNER) { - title = mUserManager.getUserInfo(userId).name; - } ((PreferenceActivity) getActivity()).startPreferencePanel( AppRestrictionsFragment.class.getName(), - extras, 0, title, + extras, R.string.user_restrictions_title, null, null, 0); } else if (info.id == UserHandle.myUserId()) { // Jump to owner info panel