summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-04-13 20:25:47 -0700
committerJoe Onorato <joeo@android.com>2010-04-13 20:29:42 -0700
commit7018d8e32761d65816c01f62b094e17e44c7ffb9 (patch)
treeb4c87cfa109baa3596d51a77016f4e5a599b15d9 /src/com
parentac03330c9684f98b4dd067a87ca70d3e0be1cfed (diff)
downloadandroid_packages_apps_Trebuchet-7018d8e32761d65816c01f62b094e17e44c7ffb9.tar.gz
android_packages_apps_Trebuchet-7018d8e32761d65816c01f62b094e17e44c7ffb9.tar.bz2
android_packages_apps_Trebuchet-7018d8e32761d65816c01f62b094e17e44c7ffb9.zip
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
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/launcher2/Launcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index e4c7dea6c..b5f20e41d 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);