diff options
author | Romain Guy <romainguy@android.com> | 2009-07-17 14:18:50 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-07-17 14:20:24 -0700 |
commit | e769bc7602f40a334f4489622b280fecb071d43a (patch) | |
tree | 63e984d8bf18d98590029730bab6dc2521e7b1f7 /src/com/android/launcher | |
parent | f984894964281fef48b97bc0bc68a17feb244c25 (diff) | |
download | android_packages_apps_Trebuchet-e769bc7602f40a334f4489622b280fecb071d43a.tar.gz android_packages_apps_Trebuchet-e769bc7602f40a334f4489622b280fecb071d43a.tar.bz2 android_packages_apps_Trebuchet-e769bc7602f40a334f4489622b280fecb071d43a.zip |
Fixes #1987902. Do not show the + button when not needed.
Diffstat (limited to 'src/com/android/launcher')
-rw-r--r-- | src/com/android/launcher/Launcher.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/com/android/launcher/Launcher.java b/src/com/android/launcher/Launcher.java index be013eb45..d47b45d22 100644 --- a/src/com/android/launcher/Launcher.java +++ b/src/com/android/launcher/Launcher.java @@ -607,14 +607,16 @@ public final class Launcher extends Activity implements View.OnClickListener, On mWorkspace.post(new Runnable() { public void run() { showGesturesPanel(false); - mGesturesProcessor.matchGesture(gesture); - mWorkspace.post(new Runnable() { - public void run() { - if (gesture != null) { - mGesturesOverlay.setGesture(gesture); + if (gesture != null) { + mGesturesProcessor.matchGesture(gesture); + mWorkspace.post(new Runnable() { + public void run() { + if (gesture != null) { + mGesturesOverlay.setGesture(gesture); + } } - } - }); + }); + } } }); } |