summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r--src/com/android/launcher3/BubbleTextView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java
index 869b0ac88..d83f81dab 100644
--- a/src/com/android/launcher3/BubbleTextView.java
+++ b/src/com/android/launcher3/BubbleTextView.java
@@ -415,8 +415,10 @@ public class BubbleTextView extends TextView {
}
preloadDrawable.setLevel(progressLevel);
- if (state == ShortcutInfo.PACKAGE_STATE_DEFAULT) {
- preloadDrawable.maybePerformFinishedAnimation();
+ if ((state == ShortcutInfo.PACKAGE_STATE_DEFAULT) && info.wasPromise) {
+ // Clear the promise flag as it is no longer different than a normal shortcut,
+ // once the animation has been run.
+ info.wasPromise = !preloadDrawable.maybePerformFinishedAnimation();
}
}