Update text for User & accounts page.

- Add the user name to the Account preference group title.
- Add the summary text to Emergency information.

Bug: 34976320
Test: make RunSettingsRoboTests
Change-Id: I771e355ce3b313ffa50feb5c5e7907b1f3857592
This commit is contained in:
Doris Ling
2017-02-03 15:06:56 -08:00
parent ebccf8d093
commit 829d3aaa7a
5 changed files with 57 additions and 2 deletions

View File

@@ -295,7 +295,8 @@ public class AccountPreferenceController extends PreferenceController
mHelper.createAccessiblePreferenceCategory(mParent.getPreferenceManager().getContext());
preferenceGroup.setOrder(mAccountProfileOrder++);
if (isSingleProfile()) {
preferenceGroup.setTitle(R.string.account_for_section_header);
preferenceGroup.setTitle(context.getString(R.string.account_for_section_header,
userInfo.name));
preferenceGroup.setContentDescription(
mContext.getString(R.string.account_settings));
} else if (userInfo.isManagedProfile()) {