Use the proper API to get managed profile user drawable
FIX: 73997367 Test: Go to settings -> Storage, observes the icon change. Change-Id: I60153b31adf1175aea4cdf960d5094a89e8bc6b9
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user