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

Commit 73ba56ff authored by kholoud mohamed's avatar kholoud mohamed
Browse files

Change the managed profile icon for profile selector

Switched to using PackageManager#getUserBadgeForDensityNoBackground which returns a
drawable that could be updated by the device management role holder.

Bug: 203548565
Bug: 188414370
Test: manual
Change-Id: I6b6bd9eceb90e16afa6d1fa52f3a7cd342a1f1ba
parent e9ca5191
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -55,8 +55,8 @@ public class UserAdapter implements SpinnerAdapter, ListAdapter {
            Drawable icon;
            if (userInfo.isManagedProfile()) {
                mName = context.getString(R.string.managed_user_title);
                icon = context.getDrawable(
                        com.android.internal.R.drawable.ic_corp_badge);
                icon = context.getPackageManager().getUserBadgeForDensityNoBackground(
                        userHandle, /* density= */ 0);
            } else {
                mName = userInfo.name;
                final int userId = userInfo.id;