Use system-api lib to get badged, shadowed icons

In order to prevent DoS attack from icon size, we're using
a system lib to help convert any loaded drawable into a flattened
bitmap with an appropriate size.

Test: Open recent app screen and then no crash
Change-Id: Ie148890fbbbf71f42863a8fe727a90615158b8c1
Fix: 33646131
This commit is contained in:
Tsung-Mao Fang
2020-02-06 13:46:05 +08:00
parent bc5e1646d5
commit 323347afcc
3 changed files with 6 additions and 5 deletions

View File

@@ -1460,7 +1460,7 @@ public class ManageApplications extends InstrumentedFragment
ApplicationsState.AppEntry entry = mEntries.get(position);
synchronized (entry) {
holder.setTitle(entry.label);
holder.setIcon(mIconDrawableFactory.getBadgedIcon(entry.info));
holder.setIcon(Utils.getBadgedIcon(mContext, entry.info));
updateSummary(holder, entry);
updateSwitch(holder, entry);
holder.updateDisableView(entry.info);