summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ShortcutInfo.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-07-29 11:45:41 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-08-04 11:05:15 -0700
commit317698bd012c1930b83bb4e2e47ac9e363fa6c6a (patch)
tree7b0175112a1a90a5328ab4345badf22784d961c2 /src/com/android/launcher3/ShortcutInfo.java
parent3f7550c1edb2a8db85e2c2db4333c9cd458e259b (diff)
downloadandroid_packages_apps_Trebuchet-317698bd012c1930b83bb4e2e47ac9e363fa6c6a.tar.gz
android_packages_apps_Trebuchet-317698bd012c1930b83bb4e2e47ac9e363fa6c6a.tar.bz2
android_packages_apps_Trebuchet-317698bd012c1930b83bb4e2e47ac9e363fa6c6a.zip
Loading high resolution icons for first 3 items in a folder
> Sometimes a folder gets rearranged, without updating the model, like when an app in uninstalled. In that case, we need to update the icons for folder items, which were previously hidden Bug: 22813360 Change-Id: I99754911c969bf2153efb2948c226c1c69219b88
Diffstat (limited to 'src/com/android/launcher3/ShortcutInfo.java')
-rw-r--r--src/com/android/launcher3/ShortcutInfo.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/launcher3/ShortcutInfo.java b/src/com/android/launcher3/ShortcutInfo.java
index 56c0b9d2f..5766cf2f2 100644
--- a/src/com/android/launcher3/ShortcutInfo.java
+++ b/src/com/android/launcher3/ShortcutInfo.java
@@ -198,13 +198,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);