From 3fb254ec672d607d9bf9b5cae3356312a24de053 Mon Sep 17 00:00:00 2001 From: Roman Birg Date: Wed, 11 Mar 2015 13:24:25 -0700 Subject: Settings: bring up IME when renaming profile Change-Id: I3535503d5e5431e9e6790933171e0fabe05c3cc6 Signed-off-by: Roman Birg --- src/com/android/settings/profiles/SetupActionsFragment.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/com/android/settings/profiles') 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(); } -- cgit v1.1