diff options
author | Winson Chung <winsonc@google.com> | 2012-11-29 14:29:38 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2012-11-29 14:30:30 -0800 |
commit | 7819abd2d191a170cbc9d4bd190001c465187a9d (patch) | |
tree | 63f5fd378c80fc9f7c33353cc9b128617229bae8 /src/com/android/launcher2/Launcher.java | |
parent | 1ef2123ccdf35f2e20ab180111bfa76c46c997e3 (diff) | |
download | android_packages_apps_Trebuchet-7819abd2d191a170cbc9d4bd190001c465187a9d.tar.gz android_packages_apps_Trebuchet-7819abd2d191a170cbc9d4bd190001c465187a9d.tar.bz2 android_packages_apps_Trebuchet-7819abd2d191a170cbc9d4bd190001c465187a9d.zip |
Fixing issue where the cling is offset. (Bug 7633074)
- Also fixing issue where the workspace cling was showing on top of AllApps when you entered it for the first time.
Change-Id: I7d59ad153de192bc1d69537af1b4af632465138b
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 002b52045..a4ed91f73 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -3739,7 +3739,9 @@ public final class Launcher extends Activity } private void dismissCling(final Cling cling, final String flag, int duration) { - if (cling != null && cling.getVisibility() == View.VISIBLE) { + // To catch cases where siblings of top-level views are made invisible, just check whether + // the cling is directly set to GONE before dismissing it. + if (cling != null && cling.getVisibility() != View.GONE) { ObjectAnimator anim = LauncherAnimUtils.ofFloat(cling, "alpha", 0f); anim.setDuration(duration); anim.addListener(new AnimatorListenerAdapter() { |