diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-05-22 12:25:45 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-06-03 19:07:44 -0700 |
commit | 53d7ee4285842732517edcccbdcaa92dccb1e107 (patch) | |
tree | 95f5a6520d621ab43c122ed37b7d12f45633b41e /src/com/android/launcher3/LauncherModel.java | |
parent | f4fe7fc5449bbfcfa7e95c7f9040c81d833a1fdb (diff) | |
download | android_packages_apps_Trebuchet-53d7ee4285842732517edcccbdcaa92dccb1e107.tar.gz android_packages_apps_Trebuchet-53d7ee4285842732517edcccbdcaa92dccb1e107.tar.bz2 android_packages_apps_Trebuchet-53d7ee4285842732517edcccbdcaa92dccb1e107.zip |
Fixing different bitmap sizes in different orientations
> Using a single bitmap icon size
> Picking up appropriate density for satisfy the required icon size
> Fixing some icon size assumptions during icon animations
Bug: 19514688
Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
Diffstat (limited to 'src/com/android/launcher3/LauncherModel.java')
-rw-r--r-- | src/com/android/launcher3/LauncherModel.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index 776c2bd63..4974dafab 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java @@ -3114,8 +3114,9 @@ public class LauncherModel extends BroadcastReceiver // Update shortcuts which use iconResource. if ((si.iconResource != null) && packageSet.contains(si.iconResource.packageName)) { - Bitmap icon = Utilities.createIconBitmap(si.iconResource.packageName, - si.iconResource.resourceName, mIconCache, context); + Bitmap icon = Utilities.createIconBitmap( + si.iconResource.packageName, + si.iconResource.resourceName, context); if (icon != null) { si.setIcon(icon); si.usingFallbackIcon = false; @@ -3558,7 +3559,7 @@ public class LauncherModel extends BroadcastReceiver String resourceName = c.getString(iconResourceIndex); info.customIcon = false; // the resource - icon = Utilities.createIconBitmap(packageName, resourceName, mIconCache, context); + icon = Utilities.createIconBitmap(packageName, resourceName, context); // the db if (icon == null) { icon = Utilities.createIconBitmap(c, iconIndex, context); @@ -3612,7 +3613,7 @@ public class LauncherModel extends BroadcastReceiver if (extra instanceof ShortcutIconResource) { iconResource = (ShortcutIconResource) extra; icon = Utilities.createIconBitmap(iconResource.packageName, - iconResource.resourceName, mIconCache, context); + iconResource.resourceName, context); } } |