From 7018d8e32761d65816c01f62b094e17e44c7ffb9 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Tue, 13 Apr 2010 20:25:47 -0700 Subject: [PATCH] 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 --- src/com/android/launcher2/Launcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index e4c7dea6cd..b5f20e41df 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -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);