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

Commit ec3c8b5e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use badged icon in App Header and Handle Menu" into main

parents 218abfcd ecf0ab3e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -753,9 +753,12 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin
            final ActivityInfo activityInfo = pm.getActivityInfo(baseActivity, 0 /* flags */);
            final IconProvider provider = new IconProvider(mContext);
            final Drawable appIconDrawable = provider.getIcon(activityInfo);
            final Drawable badgedAppIconDrawable = pm.getUserBadgedIcon(appIconDrawable,
                    UserHandle.of(mTaskInfo.userId));
            final BaseIconFactory headerIconFactory = createIconFactory(mContext,
                    R.dimen.desktop_mode_caption_icon_radius);
            mAppIconBitmap = headerIconFactory.createScaledBitmap(appIconDrawable, MODE_DEFAULT);
            mAppIconBitmap = headerIconFactory.createIconBitmap(badgedAppIconDrawable,
                    1f /* scale */);

            final BaseIconFactory resizeVeilIconFactory = createIconFactory(mContext,
                    R.dimen.desktop_mode_resize_veil_icon_size);