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

Commit e205193f authored by Tony Mak's avatar Tony Mak
Browse files

Use the proper API to get managed profile user drawable

FIX: 73997367

Test: Go to settings -> Storage, observes the icon change.

Change-Id: I60153b31adf1175aea4cdf960d5094a89e8bc6b9
parent 6dd84bef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ public class Utils {
    public static Drawable getUserIcon(Context context, UserManager um, UserInfo user) {
        final int iconSize = UserIconDrawable.getSizeForList(context);
        if (user.isManagedProfile()) {
            Drawable drawable = context.getDrawable(com.android.internal.R.drawable.ic_corp_badge);
            Drawable drawable =  UserIconDrawable.getManagedUserBadgeDrawable(context);
            drawable.setBounds(0, 0, iconSize, iconSize);
            return drawable;
        }