Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 154bb00c authored by Bartosz Fabianowski's avatar Bartosz Fabianowski Committed by android-build-merger
Browse files

Only show headers in Master Clear when there are multiple profiles

am: 28ec98cd

Change-Id: I125a16685be88cfc309d70550e72247cecbb75cd
parents 063bd1d4 28ec98cd
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -284,11 +284,13 @@ public class MasterClear extends OptionsMenuFragment
                    .getAuthenticatorTypesAsUser(profileId);
            final int M = descs.length;

            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];