diff options
| author | Amith Yamasani <yamasani@google.com> | 2009-09-16 12:43:50 -0700 |
|---|---|---|
| committer | Amith Yamasani <yamasani@google.com> | 2009-09-17 10:39:10 -0700 |
| commit | 985f5efc8278e1a5c2170c3aba354a4c9367b741 (patch) | |
| tree | 782d6a556a3b35f17a8ad780efa53a7c105d6374 /src/com/android/settings/UserDictionarySettings.java | |
| parent | 5d9ee1490258d56e0e1074b5e9b9a4bff39dd602 (diff) | |
| download | packages_apps_Settings-985f5efc8278e1a5c2170c3aba354a4c9367b741.tar.gz packages_apps_Settings-985f5efc8278e1a5c2170c3aba354a4c9367b741.tar.bz2 packages_apps_Settings-985f5efc8278e1a5c2170c3aba354a4c9367b741.zip | |
Add "settings" to a bunch of screens. Fix 2110077, 2115734, 2101651
Move Factory data reset to About phone.
Show input method when dialog to enter/edit new dictionary word is displayed.
Add title to Accessibility settings.
Diffstat (limited to 'src/com/android/settings/UserDictionarySettings.java')
| -rw-r--r-- | src/com/android/settings/UserDictionarySettings.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/settings/UserDictionarySettings.java b/src/com/android/settings/UserDictionarySettings.java index ef22ee14d..4b30b5333 100644 --- a/src/com/android/settings/UserDictionarySettings.java +++ b/src/com/android/settings/UserDictionarySettings.java @@ -29,6 +29,7 @@ import android.view.ContextMenu; import android.view.Menu; import android.view.MenuItem; import android.view.View; +import android.view.WindowManager; import android.view.ContextMenu.ContextMenuInfo; import android.widget.AlphabetIndexer; import android.widget.EditText; @@ -195,7 +196,7 @@ public class UserDictionarySettings extends ListActivity { return mCursor.getString( mCursor.getColumnIndexOrThrow(UserDictionary.Words.WORD)); } - + @Override protected Dialog onCreateDialog(int id) { View content = getLayoutInflater().inflate(R.layout.dialog_edittext, null); @@ -204,7 +205,7 @@ public class UserDictionarySettings extends ListActivity { editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE); - return new AlertDialog.Builder(this) + AlertDialog dialog = new AlertDialog.Builder(this) .setTitle(mDialogEditingWord != null ? R.string.user_dict_settings_edit_dialog_title : R.string.user_dict_settings_add_dialog_title) @@ -219,7 +220,11 @@ public class UserDictionarySettings extends ListActivity { if (mAutoReturn) finish(); }}) .create(); + dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE | + WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); + return dialog; } + @Override protected void onPrepareDialog(int id, Dialog d) { AlertDialog dialog = (AlertDialog) d; |
