am 317698bd: Loading high resolution icons for first 3 items in a folder

* commit '317698bd012c1930b83bb4e2e47ac9e363fa6c6a':
  Loading high resolution icons for first 3 items in a folder
This commit is contained in:
Sunny Goyal
2015-08-04 18:09:20 +00:00
committed by Android Git Automerger
7 changed files with 46 additions and 3 deletions

View File

@@ -197,13 +197,17 @@ public class ShortcutInfo extends ItemInfo {
return mIcon;
}
public void updateIcon(IconCache iconCache) {
public void updateIcon(IconCache iconCache, boolean useLowRes) {
if (itemType == Favorites.ITEM_TYPE_APPLICATION) {
iconCache.getTitleAndIcon(this, promisedIntent != null ? promisedIntent : intent, user,
shouldUseLowResIcon());
useLowRes);
}
}
public void updateIcon(IconCache iconCache) {
updateIcon(iconCache, shouldUseLowResIcon());
}
@Override
void onAddToDatabase(Context context, ContentValues values) {
super.onAddToDatabase(context, values);