diff options
-rw-r--r-- | src/com/android/settings/profiles/SetupActionsFragment.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java index 1d5e1f9..af90304 100644 --- a/src/com/android/settings/profiles/SetupActionsFragment.java +++ b/src/com/android/settings/profiles/SetupActionsFragment.java @@ -52,6 +52,7 @@ import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; +import android.view.inputmethod.InputMethodManager; import android.widget.AdapterView; import android.widget.Button; import android.widget.CheckBox; @@ -760,7 +761,14 @@ public class SetupActionsFragment extends SettingsPreferenceFragment alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(!empty); } }); - + alertDialog.setOnShowListener(new DialogInterface.OnShowListener() { + @Override + public void onShow(DialogInterface dialog) { + InputMethodManager imm = (InputMethodManager) + getSystemService(Context.INPUT_METHOD_SERVICE); + imm.showSoftInput(entry, InputMethodManager.SHOW_IMPLICIT); + } + }); alertDialog.show(); } |