mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Merge "Preventing zoom-in animation from running everytime the app updates." into ub-launcher3-burnaby
This commit is contained in:
@@ -213,6 +213,10 @@ class PreloadIconDrawable extends Drawable {
|
||||
return mAnimationProgress;
|
||||
}
|
||||
|
||||
public boolean hasNotCompleted() {
|
||||
return mAnimationProgress < ANIMATION_PROGRESS_COMPLETED;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIntrinsicHeight() {
|
||||
return mIcon.getIntrinsicHeight();
|
||||
|
||||
@@ -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