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

This commit is contained in:
Romain Guy 2009-06-26 10:31:07 -07:00
parent f22875368c
commit f280f202e9
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) {