diff options
author | Michael Jurka <mikejurka@google.com> | 2012-11-19 16:15:24 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2012-11-19 16:15:24 -0800 |
commit | 7f9ddd84353451e72f48f34a8d280d5e873b2f45 (patch) | |
tree | 44a77eae101443d6b460b4db352f78145484c46e | |
parent | 0a457bfbd9ca6562e8fcd604bcdfeb22f1fb4ded (diff) | |
download | packages_apps_trebuchet-7f9ddd84353451e72f48f34a8d280d5e873b2f45.zip packages_apps_trebuchet-7f9ddd84353451e72f48f34a8d280d5e873b2f45.tar.gz packages_apps_trebuchet-7f9ddd84353451e72f48f34a8d280d5e873b2f45.tar.bz2 |
Fix janky transition on All Apps tab switch
Bug: 7139562
-rw-r--r-- | src/com/android/launcher2/AppsCustomizeTabHost.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java index 96ec33e..19bc682 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher2/AppsCustomizeTabHost.java @@ -282,10 +282,15 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona reloadCurrentPage(); } }); - AnimatorSet animSet = LauncherAnimUtils.createAnimatorSet(); + + final AnimatorSet animSet = LauncherAnimUtils.createAnimatorSet(); animSet.playTogether(outAnim, inAnim); animSet.setDuration(duration); - animSet.start(); + post(new Runnable() { + public void run() { + animSet.start(); + } + }); } }); } |