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

Commit 7d29aa7d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use the proper API to get managed profile user drawable"

parents edfd36ab e205193f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -142,7 +142,7 @@ public class Utils {
    public static Drawable getUserIcon(Context context, UserManager um, UserInfo user) {
    public static Drawable getUserIcon(Context context, UserManager um, UserInfo user) {
        final int iconSize = UserIconDrawable.getSizeForList(context);
        final int iconSize = UserIconDrawable.getSizeForList(context);
        if (user.isManagedProfile()) {
        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);
            drawable.setBounds(0, 0, iconSize, iconSize);
            return drawable;
            return drawable;
        }
        }