Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddc20bff authored by Sunny Goyal's avatar Sunny Goyal
Browse files

When updating an icon, keeping the drawable padding same as before

Bug: 17879518
Change-Id: Ifc819c353069bf470fd7ef6f989e4a2ea1289d2d
parent 62227274
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {