diff --git a/res/values/strings.xml b/res/values/strings.xml index 29ba1d350f1..99447237089 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2491,7 +2491,7 @@ found in the list of installed applications. Language settings - Keyboard settings + Keyboard & input methods Select language @@ -2522,17 +2522,17 @@ found in the list of installed applications. %1$s. Use this input method? - Mouse and trackpad settings + Mouse/trackpad Pointer speed User dictionary - - User dictionary - - Manage user dictionaries + + Personal dictionary + + Personal dictionaries "" @@ -2590,8 +2590,8 @@ found in the list of installed applications. Text input Input method - - Current input method + + Default Input method selector @@ -2932,22 +2932,20 @@ found in the list of installed applications. Android keyboard - Voice input - - Voice output + Voice Voice recognizer - Voice recognizer settings + Voice input for search Settings for \'%s\' - + Text-to-speech settings - - Text-to-speech settings + + Text-to-speech output Always use my settings diff --git a/res/xml/language_settings.xml b/res/xml/language_settings.xml index 1598939006a..fbfb3d7aa1e 100644 --- a/res/xml/language_settings.xml +++ b/res/xml/language_settings.xml @@ -18,23 +18,18 @@ xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" android:title="@string/language_keyboard_settings_title"> - + - + - - - - - - + + @@ -65,8 +60,8 @@ android:persistent="false"/> - + - - - (); @@ -89,11 +89,11 @@ public class VoiceInputOutputSettings implements OnPreferenceChangeListener { if (numAvailable == 0) { // No recognizer available - remove all related preferences. - mFragment.getPreferenceScreen().removePreference(mVoiceInputCategory); + mFragment.getPreferenceScreen().removePreference(mVoiceCategory); } else if (numAvailable == 1) { // Only one recognizer available, so don't show the list of choices, but do // set up the link to settings for the available recognizer. - mVoiceInputCategory.removePreference(mRecognizerPref); + mVoiceCategory.removePreference(mRecognizerPref); // But first set up the available recognizers map with just the one recognizer. ResolveInfo resolveInfo = availableRecognitionServices.get(0); @@ -193,7 +193,7 @@ public class VoiceInputOutputSettings implements OnPreferenceChangeListener { // No settings preference available - hide the preference. Log.w(TAG, "no recognizer settings available for " + si.packageName); mSettingsPref.setIntent(null); - mVoiceInputCategory.removePreference(mSettingsPref); + mVoiceCategory.removePreference(mSettingsPref); } else { Intent i = new Intent(Intent.ACTION_MAIN); i.setComponent(new ComponentName(si.packageName, settingsActivity)); diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index 45621e56096..5c85374a67c 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java @@ -139,8 +139,7 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment if (null == localeList) { // The locale list is null if and only if the user dictionary service is // not present or disabled. In this case we need to remove the preference. - ((PreferenceGroup)findPreference("language_settings_category")).removePreference( - userDictionaryPreference); + getPreferenceScreen().removePreference(userDictionaryPreference); } else if (localeList.size() <= 1) { userDictionaryPreference.setTitle(R.string.user_dict_single_settings_title); userDictionaryPreference.setFragment(UserDictionarySettings.class.getName());