mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
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:
@@ -189,10 +189,11 @@ class PreloadIconDrawable extends Drawable {
|
||||
|
||||
/**
|
||||
* Runs the finish animation if it is has not been run after last level change.
|
||||
* @return true if the animation was run.
|
||||
*/
|
||||
public void maybePerformFinishedAnimation() {
|
||||
public boolean maybePerformFinishedAnimation() {
|
||||
if (mAnimationProgress > ANIMATION_PROGRESS_STOPPED) {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
if (mAnimator != null) {
|
||||
mAnimator.cancel();
|
||||
@@ -201,6 +202,7 @@ class PreloadIconDrawable extends Drawable {
|
||||
mAnimator = ObjectAnimator.ofFloat(this, "animationProgress",
|
||||
ANIMATION_PROGRESS_STARTED, ANIMATION_PROGRESS_COMPLETED);
|
||||
mAnimator.start();
|
||||
return true;
|
||||
}
|
||||
|
||||
public void setAnimationProgress(float progress) {
|
||||
|
||||
Reference in New Issue
Block a user