am f280f202: Fixes #1945905. Prevents the user from clicking the same button mutiple times.

Merge commit 'f280f202e914d92630132a9fab522b80b97ee1d7'

* commit 'f280f202e914d92630132a9fab522b80b97ee1d7':
  Fixes #1945905. Prevents the user from clicking the same button mutiple times.
This commit is contained in:
Romain Guy 2009-06-26 10:32:24 -07:00 committed by The Android Open Source Project
commit 477253fdee
1 changed files with 5 additions and 3 deletions

View File

@ -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) {