From f280f202e914d92630132a9fab522b80b97ee1d7 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 26 Jun 2009 10:31:07 -0700 Subject: [PATCH] Fixes #1945905. Prevents the user from clicking the same button mutiple times. --- src/com/android/launcher/Launcher.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/android/launcher/Launcher.java b/src/com/android/launcher/Launcher.java index 328a5ca2b0..918ffaa15c 100644 --- a/src/com/android/launcher/Launcher.java +++ b/src/com/android/launcher/Launcher.java @@ -614,9 +614,11 @@ public final class Launcher extends Activity implements View.OnClickListener, On } private void createGesture() { - mCurrentGesture = mGesturesOverlay.getGesture(); - mWaitingForResult = true; - pickShortcut(REQUEST_PICK_GESTURE_ACTION, R.string.title_select_shortcut); + if (!mWaitingForResult) { + mCurrentGesture = mGesturesOverlay.getGesture(); + mWaitingForResult = true; + pickShortcut(REQUEST_PICK_GESTURE_ACTION, R.string.title_select_shortcut); + } } private void completeCreateGesture(Intent data, boolean isShortcut) {