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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user