Preventing zoom-in animation from running everytime the app updates.
Bug: 22557455 Change-Id: I3ac1212a2f319397cd18be8f4452047d974312b8
This commit is contained in:
@@ -4334,8 +4334,9 @@ public class Workspace extends PagedView
|
||||
updates.contains(info)) {
|
||||
ShortcutInfo si = (ShortcutInfo) info;
|
||||
BubbleTextView shortcut = (BubbleTextView) v;
|
||||
boolean oldPromiseState = getTextViewIcon(shortcut)
|
||||
instanceof PreloadIconDrawable;
|
||||
Drawable oldIcon = getTextViewIcon(shortcut);
|
||||
boolean oldPromiseState = (oldIcon instanceof PreloadIconDrawable)
|
||||
&& ((PreloadIconDrawable) oldIcon).hasNotCompleted();
|
||||
shortcut.applyFromShortcutInfo(si, mIconCache,
|
||||
si.isPromise() != oldPromiseState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user