summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-07-17 14:18:50 -0700
committerRomain Guy <romainguy@android.com>2009-07-17 14:20:24 -0700
commite769bc7602f40a334f4489622b280fecb071d43a (patch)
tree63e984d8bf18d98590029730bab6dc2521e7b1f7
parentf984894964281fef48b97bc0bc68a17feb244c25 (diff)
downloadLauncher-e769bc7602f40a334f4489622b280fecb071d43a.tar.gz
Fixes #1987902. Do not show the + button when not needed.
-rw-r--r--src/com/android/launcher/Launcher.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/com/android/launcher/Launcher.java b/src/com/android/launcher/Launcher.java
index be013eb..d47b45d 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);
+ }
}
- }
- });
+ });
+ }
}
});
}