diff options
author | Michael Jurka <mikejurka@google.com> | 2010-10-28 15:36:06 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2010-10-29 14:52:03 -0700 |
commit | 3c4c20fbe682cb4b3ef94f09afe0af09171583f3 (patch) | |
tree | 12b89327b982535153b97ba77ce720e54b439260 /src/com/android/launcher2/InterruptibleInOutAnimator.java | |
parent | cd68ff5b88de9b5136ff5a9ef698e4db2fc5db66 (diff) | |
download | packages_apps_trebuchet-3c4c20fbe682cb4b3ef94f09afe0af09171583f3.zip packages_apps_trebuchet-3c4c20fbe682cb4b3ef94f09afe0af09171583f3.tar.gz packages_apps_trebuchet-3c4c20fbe682cb4b3ef94f09afe0af09171583f3.tar.bz2 |
Fix: switching states during animations was broken
- cancelling state animations on home screens before starting new ones
- temporary workaround for the fact that onAnimationEnd is not called immediately when an animation is cancelled
- forcing all apps zoom-in animation to complete if it's cancelled
Change-Id: I3eb011f689050692e8d95f2736e01ab5420f722e
Diffstat (limited to 'src/com/android/launcher2/InterruptibleInOutAnimator.java')
-rw-r--r-- | src/com/android/launcher2/InterruptibleInOutAnimator.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/launcher2/InterruptibleInOutAnimator.java b/src/com/android/launcher2/InterruptibleInOutAnimator.java index 5ebe605..570b9e7 100644 --- a/src/com/android/launcher2/InterruptibleInOutAnimator.java +++ b/src/com/android/launcher2/InterruptibleInOutAnimator.java @@ -52,8 +52,9 @@ public class InterruptibleInOutAnimator { mOriginalFromValue = fromValue; mOriginalToValue = toValue; - mAnimator.addListener(new AnimatorListenerAdapter() { - public void onAnimationEnd(Animator animation) { + mAnimator.addListener(new LauncherAnimatorListenerAdapter() { + @Override + public void onAnimationEndOrCancel(Animator animation) { mDirection = STOPPED; } }); |