summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android/quickstep/AnimatedFloat.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-03-12 13:40:58 -0700
committerSunny Goyal <sunnygoyal@google.com>2018-03-12 15:25:17 -0700
commit6586062f711a5194d22d870b66ba7e5a8467576f (patch)
tree624b2195f13f1f18e0941724186ce7eaab8bee04 /quickstep/src/com/android/quickstep/AnimatedFloat.java
parentdcdeffdfd5446886759e128d4b59ffa1cb3c2dc1 (diff)
downloadandroid_packages_apps_Trebuchet-6586062f711a5194d22d870b66ba7e5a8467576f.tar.gz
android_packages_apps_Trebuchet-6586062f711a5194d22d870b66ba7e5a8467576f.tar.bz2
android_packages_apps_Trebuchet-6586062f711a5194d22d870b66ba7e5a8467576f.zip
Ensuring that we finish the last transition before starting a new one.
> Finishing the active animation instead of cancelling it. This ansures that the animation callbacks are called properly and RecentsAnimaiton is finished > If a transition is already running, using main thread for next transtion so that this new transition is not started before the last transition is finished. > If the transition is expected to finish at Launcher, directly use the Launcher consumer. RunningTaskInfo is not updated until the screen shot is complete. Bug: 74481901 Change-Id: I2b1128f1f2eff0e6bd94b3adb9cef6ae0578bd0c
Diffstat (limited to 'quickstep/src/com/android/quickstep/AnimatedFloat.java')
-rw-r--r--quickstep/src/com/android/quickstep/AnimatedFloat.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/AnimatedFloat.java b/quickstep/src/com/android/quickstep/AnimatedFloat.java
index 214b3f3b9..84dfa457e 100644
--- a/quickstep/src/com/android/quickstep/AnimatedFloat.java
+++ b/quickstep/src/com/android/quickstep/AnimatedFloat.java
@@ -77,6 +77,12 @@ public class AnimatedFloat {
}
}
+ public void finishAnimation() {
+ if (mValueAnimator != null && mValueAnimator.isRunning()) {
+ mValueAnimator.end();
+ }
+ }
+
public ObjectAnimator getCurrentAnimation() {
return mValueAnimator;
}