diff options
author | Roman Birg <roman@cyngn.com> | 2015-03-11 13:24:25 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 16:11:15 -0700 |
commit | 3fb254ec672d607d9bf9b5cae3356312a24de053 (patch) | |
tree | 7988b119c4fef6c5799993297dd7a771a1b53b34 /src/com/android/settings/profiles | |
parent | ac17085c50c82597e77ceda8c40ca21957ea413e (diff) | |
download | packages_apps_Settings-3fb254ec672d607d9bf9b5cae3356312a24de053.zip packages_apps_Settings-3fb254ec672d607d9bf9b5cae3356312a24de053.tar.gz packages_apps_Settings-3fb254ec672d607d9bf9b5cae3356312a24de053.tar.bz2 |
Settings: bring up IME when renaming profile
Change-Id: I3535503d5e5431e9e6790933171e0fabe05c3cc6
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'src/com/android/settings/profiles')
-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(); } |