diff options
author | Winson Chung <winsonc@google.com> | 2011-09-16 20:14:36 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-09-18 18:38:11 -0700 |
commit | 7d7541e7b48fdc114c24b3b0aa75e70d7228041e (patch) | |
tree | 4b210341894a5e14d00d91009ac0b3874b76ac15 /src/com/android/launcher2/AppsCustomizeTabHost.java | |
parent | 23409c2a1247a7531348ab1c114eca959d78b37f (diff) | |
download | android_packages_apps_Trebuchet-7d7541e7b48fdc114c24b3b0aa75e70d7228041e.tar.gz android_packages_apps_Trebuchet-7d7541e7b48fdc114c24b3b0aa75e70d7228041e.tar.bz2 android_packages_apps_Trebuchet-7d7541e7b48fdc114c24b3b0aa75e70d7228041e.zip |
Updating Clings. (5057945, 5056643)
Change-Id: Ifb2d37e92495aeddf9d4b3277eb8d2a846f4aa99
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizeTabHost.java')
-rw-r--r-- | src/com/android/launcher2/AppsCustomizeTabHost.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java index 124cf7332..8b7b95612 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher2/AppsCustomizeTabHost.java @@ -271,7 +271,7 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona /* LauncherTransitionable overrides */ @Override - public void onLauncherTransitionStart(Animator animation, boolean toWorkspace) { + public void onLauncherTransitionStart(Launcher l, Animator animation, boolean toWorkspace) { mInTransition = true; // isHardwareAccelerated() checks if we're attached to a window and if that // window is HW accelerated-- we were sometimes not attached to a window @@ -294,14 +294,19 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona } @Override - public void onLauncherTransitionEnd(Animator animation, boolean toWorkspace) { + public void onLauncherTransitionEnd(Launcher l, Animator animation, boolean toWorkspace) { mInTransition = false; if (animation != null) { setLayerType(LAYER_TYPE_NONE, null); } - if (!toWorkspace && !LauncherApplication.isScreenLarge()) { - mAppsCustomizePane.hideScrollingIndicator(false); + if (!toWorkspace) { + // Dismiss the cling if necessary + l.dismissWorkspaceCling(null); + + if (!LauncherApplication.isScreenLarge()) { + mAppsCustomizePane.hideScrollingIndicator(false); + } } } |