Three kinds of owner info - owner, user and profile

Bug: 8736733

Put the summary "Restricted profile" under the user name in app restrictions panel.
Bug: 8736734

Change-Id: I6b724bd10a9246eb57831bffb737a48c01e0c285
This commit is contained in:
Amith Yamasani
2013-04-28 22:13:22 -07:00
parent c5b036571e
commit b017171587
6 changed files with 27 additions and 7 deletions

View File

@@ -168,7 +168,11 @@ public class SecuritySettings extends SettingsPreferenceFragment
// Rename owner info settings
Preference ownerInfoPref = findPreference(KEY_OWNER_INFO_SETTINGS);
if (ownerInfoPref != null) {
ownerInfoPref.setTitle(R.string.user_info_settings_title);
if (UserManager.get(getActivity()).isLinkedUser()) {
ownerInfoPref.setTitle(R.string.profile_info_settings_title);
} else {
ownerInfoPref.setTitle(R.string.user_info_settings_title);
}
}
}