summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-07-17 17:13:09 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-07-17 17:13:09 -0700
commit130adf67e20d32a086474d49cc7a8292c21b58bb (patch)
tree61fcc859a82ef23dc71338eae4e50888fe996a47
parent4cae075e6e3cdd5f517dfc6f9861520db6de9d3d (diff)
parente769bc7602f40a334f4489622b280fecb071d43a (diff)
downloadandroid_packages_apps_Trebuchet-130adf67e20d32a086474d49cc7a8292c21b58bb.tar.gz
android_packages_apps_Trebuchet-130adf67e20d32a086474d49cc7a8292c21b58bb.tar.bz2
android_packages_apps_Trebuchet-130adf67e20d32a086474d49cc7a8292c21b58bb.zip
am e769bc76: Fixes #1987902. Do not show the + button when not needed.
Merge commit 'e769bc7602f40a334f4489622b280fecb071d43a' * commit 'e769bc7602f40a334f4489622b280fecb071d43a': 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 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);
+ }
}
- }
- });
+ });
+ }
}
});
}