am 66d80e69: am d753b42d: Bug 2246631 - Show soft keyboard on launcher dialogs

Merge commit '66d80e6931c298d356d4989fd83088a643f0570e' into eclair-mr2-plus-aosp

* commit '66d80e6931c298d356d4989fd83088a643f0570e':
  Bug 2246631 - Show soft keyboard on launcher dialogs
This commit is contained in:
Joe Onorato
2009-11-09 16:20:52 -08:00
committed by Android Git Automerger
+4
View File
@@ -1559,6 +1559,10 @@ public final class Launcher extends Activity
final AlertDialog dialog = builder.create();
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
public void onShow(DialogInterface dialog) {
mInput.requestFocus();
InputMethodManager inputManager = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.showSoftInput(mInput, 0);
}
});