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

Commit 546790c1 authored by Zoltan Szatmary-Ban's avatar Zoltan Szatmary-Ban
Browse files

Show account icons for managed profiles on Settings > Factory Reset

Fixing a bug where managed profile's accounts where shown without
the account icon.

Bug: 18555032
Change-Id: I5a1094e795b31a00599bc4df413573030693b436
parent 1dce16a6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -232,7 +232,8 @@ public class MasterClear extends Fragment {
                Drawable icon = null;
                try {
                    if (desc.iconId != 0) {
                        Context authContext = context.createPackageContext(desc.packageName, 0);
                        Context authContext = context.createPackageContextAsUser(desc.packageName,
                                0, userHandle);
                        icon = context.getPackageManager().getUserBadgedIcon(
                                authContext.getDrawable(desc.iconId), userHandle);
                    }