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/AllAppsTabbed.java | |
parent | cd68ff5b88de9b5136ff5a9ef698e4db2fc5db66 (diff) | |
download | android_packages_apps_Trebuchet-3c4c20fbe682cb4b3ef94f09afe0af09171583f3.tar.gz android_packages_apps_Trebuchet-3c4c20fbe682cb4b3ef94f09afe0af09171583f3.tar.bz2 android_packages_apps_Trebuchet-3c4c20fbe682cb4b3ef94f09afe0af09171583f3.zip |
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/AllAppsTabbed.java')
-rw-r--r-- | src/com/android/launcher2/AllAppsTabbed.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/launcher2/AllAppsTabbed.java b/src/com/android/launcher2/AllAppsTabbed.java index eaeb80f91..e0ff1a854 100644 --- a/src/com/android/launcher2/AllAppsTabbed.java +++ b/src/com/android/launcher2/AllAppsTabbed.java @@ -19,7 +19,6 @@ package com.android.launcher2; import com.android.launcher.R; import android.animation.Animator; -import android.animation.AnimatorListenerAdapter; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.content.Context; @@ -81,9 +80,9 @@ public class AllAppsTabbed extends TabHost implements AllAppsView { final float alpha = mAllApps.getAlpha(); ValueAnimator alphaAnim = ObjectAnimator.ofFloat(mAllApps, "alpha", alpha, 0.0f). setDuration(duration); - alphaAnim.addListener(new AnimatorListenerAdapter() { + alphaAnim.addListener(new LauncherAnimatorListenerAdapter() { @Override - public void onAnimationEnd(Animator animation) { + public void onAnimationEndOrCancel(Animator animation) { String tag = getCurrentTabTag(); if (tag == TAG_ALL) { mAllApps.setAppFilter(AllAppsPagedView.ALL_APPS_FLAG); |