diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-05-11 14:08:36 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-05-11 14:09:30 -0700 |
commit | ddc20bff8f09aadf65a3913ee56ff9a56e5beadc (patch) | |
tree | e60a918889b94297728a073c4bd36b2c409460ab /src/com/android/launcher3/Workspace.java | |
parent | 62227274cb2c16c87beda01991c61618c800f66b (diff) | |
download | android_packages_apps_Trebuchet-ddc20bff8f09aadf65a3913ee56ff9a56e5beadc.tar.gz android_packages_apps_Trebuchet-ddc20bff8f09aadf65a3913ee56ff9a56e5beadc.tar.bz2 android_packages_apps_Trebuchet-ddc20bff8f09aadf65a3913ee56ff9a56e5beadc.zip |
When updating an icon, keeping the drawable padding same as before
Bug: 17879518
Change-Id: Ifc819c353069bf470fd7ef6f989e4a2ea1289d2d
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 5c2121ab8..55deb8559 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -4185,7 +4185,7 @@ public class Workspace extends SmoothPagedView && packageNames.contains(cn.getPackageName())) { shortcutInfo.isDisabled |= reason; BubbleTextView shortcut = (BubbleTextView) v; - shortcut.applyFromShortcutInfo(shortcutInfo, mIconCache, true, false); + shortcut.applyFromShortcutInfo(shortcutInfo, mIconCache, false); if (parent != null) { parent.invalidate(); @@ -4371,7 +4371,7 @@ public class Workspace extends SmoothPagedView BubbleTextView shortcut = (BubbleTextView) v; boolean oldPromiseState = getTextViewIcon(shortcut) instanceof PreloadIconDrawable; - shortcut.applyFromShortcutInfo(si, mIconCache, true, + shortcut.applyFromShortcutInfo(si, mIconCache, false, si.isPromise() != oldPromiseState); if (parent != null) { |