Modify account page multiple profile UI
- Extend the tab width to 50% - Hide category title in two tab mode Bug: 141601408 Test: manual Change-Id: I73a1a64c704f7a74c200803efef97cdac5534aa7
This commit is contained in:
@@ -329,19 +329,23 @@ public class AccountPreferenceController extends AbstractPreferenceController
|
||||
preferenceGroup.setContentDescription(
|
||||
mContext.getString(R.string.account_settings));
|
||||
} else if (userInfo.isManagedProfile()) {
|
||||
preferenceGroup.setTitle(R.string.category_work);
|
||||
String workGroupSummary = getWorkGroupSummary(context, userInfo);
|
||||
preferenceGroup.setSummary(workGroupSummary);
|
||||
preferenceGroup.setContentDescription(
|
||||
mContext.getString(R.string.accessibility_category_work, workGroupSummary));
|
||||
if (mType == ProfileSelectFragment.ALL) {
|
||||
preferenceGroup.setTitle(R.string.category_work);
|
||||
final String workGroupSummary = getWorkGroupSummary(context, userInfo);
|
||||
preferenceGroup.setSummary(workGroupSummary);
|
||||
preferenceGroup.setContentDescription(
|
||||
mContext.getString(R.string.accessibility_category_work, workGroupSummary));
|
||||
}
|
||||
profileData.removeWorkProfilePreference = newRemoveWorkProfilePreference();
|
||||
mHelper.enforceRestrictionOnPreference(profileData.removeWorkProfilePreference,
|
||||
DISALLOW_REMOVE_MANAGED_PROFILE, UserHandle.myUserId());
|
||||
profileData.managedProfilePreference = newManagedProfileSettings();
|
||||
} else {
|
||||
preferenceGroup.setTitle(R.string.category_personal);
|
||||
preferenceGroup.setContentDescription(
|
||||
mContext.getString(R.string.accessibility_category_personal));
|
||||
if (mType == ProfileSelectFragment.ALL) {
|
||||
preferenceGroup.setTitle(R.string.category_personal);
|
||||
preferenceGroup.setContentDescription(
|
||||
mContext.getString(R.string.accessibility_category_personal));
|
||||
}
|
||||
}
|
||||
final PreferenceScreen screen = mParent.getPreferenceScreen();
|
||||
if (screen != null) {
|
||||
|
Reference in New Issue
Block a user