diff --git a/src/com/android/settings/MasterClear.java b/src/com/android/settings/MasterClear.java index 8b09fe39b16..ef4190b2ccf 100644 --- a/src/com/android/settings/MasterClear.java +++ b/src/com/android/settings/MasterClear.java @@ -306,11 +306,13 @@ public class MasterClear extends OptionsMenuFragment .getAuthenticatorTypesAsUser(profileId); final int M = descs.length; - View titleView = Utils.inflateCategoryHeader(inflater, contents); - final TextView titleText = (TextView) titleView.findViewById(android.R.id.title); - titleText.setText(userInfo.isManagedProfile() ? R.string.category_work - : R.string.category_personal); - contents.addView(titleView); + if (profilesSize > 1) { + View titleView = Utils.inflateCategoryHeader(inflater, contents); + final TextView titleText = (TextView) titleView.findViewById(android.R.id.title); + titleText.setText(userInfo.isManagedProfile() ? R.string.category_work + : R.string.category_personal); + contents.addView(titleView); + } for (int i = 0; i < N; i++) { Account account = accounts[i];