summaryrefslogtreecommitdiffstats
path: root/res/layout/dialog_edittext.xml
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-03-13 19:15:20 -0700
committerJake Hamby <jhamby@google.com>2012-03-13 20:08:22 -0700
commita9534367b5be907885fe0e2f10375889aeaf635b (patch)
tree70af32efebc94c8860e4aa2d8a188c42ac692065 /res/layout/dialog_edittext.xml
parent4f85e85666821b8384dff2957551c4b98eb375e1 (diff)
downloadpackages_apps_Settings-a9534367b5be907885fe0e2f10375889aeaf635b.zip
packages_apps_Settings-a9534367b5be907885fe0e2f10375889aeaf635b.tar.gz
packages_apps_Settings-a9534367b5be907885fe0e2f10375889aeaf635b.tar.bz2
Fix IME soft keyboard for Bluetooth rename device dialog.
The soft keyboard should automatically pop up when the user selects the Bluetooth rename device menu item. Fixed by calling setSoftInputMode(SOFT_INPUT_STATE_ALWAYS_VISIBLE) on the Window containing the AlertDialog before showing. The device name field should also be a single line field, with the Done button causing the device to be renamed. Set the "singleLine" attribute in the layout XML to true, and added a TextView.OnEditorActionListener to set the device name and dismiss the dialog for EditorInfo.IME_ACTION_DONE. Bug: 5342542 Bug: 5343354 Change-Id: I550d8e9a59395ad66f8a9c11d29c0f2ef278c196
Diffstat (limited to 'res/layout/dialog_edittext.xml')
-rw-r--r--res/layout/dialog_edittext.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/layout/dialog_edittext.xml b/res/layout/dialog_edittext.xml
index 6b849ac..80911da 100644
--- a/res/layout/dialog_edittext.xml
+++ b/res/layout/dialog_edittext.xml
@@ -25,6 +25,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLength="50"
+ android:singleLine="true"
/>
</LinearLayout>