Preventing zoom-in animation from running everytime the app updates.

Bug: 22557455
Change-Id: I3ac1212a2f319397cd18be8f4452047d974312b8
This commit is contained in:
Sunny Goyal
2015-08-11 15:17:30 -07:00
parent a1ee659e74
commit 3fcab663a1
2 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -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);