Clear the promise flag once the restore animation is run

and no more restore related tasks are pending

issue: 17214102

Change-Id: I54c486ff001d74b4961f85947f41848cf92243a3
This commit is contained in:
Sunny Goyal
2014-08-25 16:02:46 -07:00
parent d5058a534e
commit 4f88bfb7af
2 changed files with 8 additions and 4 deletions

View File

@@ -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();
}
}