Merge "Avoid double-badging application icon in the dialog" into sc-dev am: c752d2e25b

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13698226

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie8c1cbb51fe5e4ef06a851f5efc4809e9bafc77f
This commit is contained in:
TreeHugger Robot
2021-03-02 09:03:07 +00:00
committed by Automerger Merge Worker

View File

@@ -92,8 +92,7 @@ public final class UserDialogs {
View view = inflater.inflate(R.layout.delete_managed_profile_dialog, null);
ImageView imageView =
(ImageView) view.findViewById(R.id.delete_managed_profile_mdm_icon_view);
Drawable badgedApplicationIcon = packageManager.getUserBadgedIcon(
packageManager.getApplicationIcon(mdmApplicationInfo), new UserHandle(userId));
Drawable badgedApplicationIcon = packageManager.getApplicationIcon(mdmApplicationInfo);
imageView.setImageDrawable(badgedApplicationIcon);
CharSequence appLabel = packageManager.getApplicationLabel(mdmApplicationInfo);