Fix 2575588 - After creating new folder shortcut unable to navigate between home screen using touch.

Somebody fixed a bug in managed dialogs where it wouldn't
create the dialog after a configuration change.  This means that we
shouldn't set mWaitingForResult in createDialog, we need to set it in
onShow.  This is what the add dialog was already doing.

Change-Id: I955c2f7cd4a47213f84986ec9ba251146b1ac423
This commit is contained in:
Joe Onorato 2010-04-13 20:25:47 -07:00
parent ac03330c96
commit 7018d8e327
1 changed files with 1 additions and 1 deletions

View File

@ -1617,7 +1617,6 @@ public final class Launcher extends Activity
private EditText mInput;
Dialog createDialog() {
mWaitingForResult = true;
final View layout = View.inflate(Launcher.this, R.layout.rename_folder, null);
mInput = (EditText) layout.findViewById(R.id.folder_name);
@ -1649,6 +1648,7 @@ public final class Launcher extends Activity
final AlertDialog dialog = builder.create();
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
public void onShow(DialogInterface dialog) {
mWaitingForResult = true;
mInput.requestFocus();
InputMethodManager inputManager = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);