Only show headers in Master Clear when there are multiple profiles
am: 28ec98cd1f
Change-Id: I125a16685be88cfc309d70550e72247cecbb75cd
This commit is contained in:
@@ -284,11 +284,13 @@ public class MasterClear extends OptionsMenuFragment
|
|||||||
.getAuthenticatorTypesAsUser(profileId);
|
.getAuthenticatorTypesAsUser(profileId);
|
||||||
final int M = descs.length;
|
final int M = descs.length;
|
||||||
|
|
||||||
View titleView = Utils.inflateCategoryHeader(inflater, contents);
|
if (profilesSize > 1) {
|
||||||
final TextView titleText = (TextView) titleView.findViewById(android.R.id.title);
|
View titleView = Utils.inflateCategoryHeader(inflater, contents);
|
||||||
titleText.setText(userInfo.isManagedProfile() ? R.string.category_work
|
final TextView titleText = (TextView) titleView.findViewById(android.R.id.title);
|
||||||
: R.string.category_personal);
|
titleText.setText(userInfo.isManagedProfile() ? R.string.category_work
|
||||||
contents.addView(titleView);
|
: R.string.category_personal);
|
||||||
|
contents.addView(titleView);
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < N; i++) {
|
for (int i = 0; i < N; i++) {
|
||||||
Account account = accounts[i];
|
Account account = accounts[i];
|
||||||
|
Reference in New Issue
Block a user