Align more prefs for icon space.
- Extend preference_category to support summary text - Removed work_profile_category, used by account list - align prefs in storage settings - Use Preference instead of PrefScreen in xmls - Use proper footer preference in NightDisplaySettings, BatterySaver, DataSaver, AutomaticStorageManage - Remove WallOfTextPreference Bug: 33775510 Test: visual Change-Id: I28156b857ff5acac8746c42384dc03d5997ebd9d
This commit is contained in:
@@ -271,7 +271,6 @@ public class AccountPreferenceController extends PreferenceController
|
||||
} else {
|
||||
List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId());
|
||||
final int profilesCount = profiles.size();
|
||||
final boolean addCategory = profilesCount > 1;
|
||||
for (int i = 0; i < profilesCount; i++) {
|
||||
updateProfileUi(profiles.get(i));
|
||||
}
|
||||
@@ -298,7 +297,6 @@ public class AccountPreferenceController extends PreferenceController
|
||||
preferenceGroup.setContentDescription(
|
||||
mContext.getString(R.string.account_settings));
|
||||
} else if (userInfo.isManagedProfile()) {
|
||||
preferenceGroup.setLayoutResource(R.layout.work_profile_category);
|
||||
preferenceGroup.setTitle(R.string.category_work);
|
||||
String workGroupSummary = getWorkGroupSummary(context, userInfo);
|
||||
preferenceGroup.setSummary(workGroupSummary);
|
||||
|
Reference in New Issue
Block a user