Merge "Change the managed profile icon for profile selector"

This commit is contained in:
Kholoud Mohamed
2022-01-24 23:11:35 +00:00
committed by Android (Google) Code Review

View File

@@ -55,8 +55,8 @@ public class UserAdapter implements SpinnerAdapter, ListAdapter {
Drawable icon; Drawable icon;
if (userInfo.isManagedProfile()) { if (userInfo.isManagedProfile()) {
mName = context.getString(R.string.managed_user_title); mName = context.getString(R.string.managed_user_title);
icon = context.getDrawable( icon = context.getPackageManager().getUserBadgeForDensityNoBackground(
com.android.internal.R.drawable.ic_corp_badge); userHandle, /* density= */ 0);
} else { } else {
mName = userInfo.name; mName = userInfo.name;
final int userId = userInfo.id; final int userId = userInfo.id;