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:
Tony Mak
2018-02-28 14:59:31 +00:00
parent 6dd84bef21
commit e205193f86

View File

@@ -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;
}