diff options
author | Jean Chalard <jchalard@google.com> | 2011-08-31 21:40:43 +0900 |
---|---|---|
committer | Jean Chalard <jchalard@google.com> | 2011-09-01 20:38:52 +0900 |
commit | 8ba5c42b213c4cd5b8773595fea2a1be6a18d711 (patch) | |
tree | 82bf9da360b59046323fda10c52a87fde8d23e01 /src/com/android | |
parent | 8ff6222a9136cdbaeea9191869b90abd179efc85 (diff) | |
download | packages_apps_settings-8ba5c42b213c4cd5b8773595fea2a1be6a18d711.zip packages_apps_settings-8ba5c42b213c4cd5b8773595fea2a1be6a18d711.tar.gz packages_apps_settings-8ba5c42b213c4cd5b8773595fea2a1be6a18d711.tar.bz2 |
Update settings wording for ICS
Bug: 5069983
Change-Id: I882aded067e8cc75197f6d3fa5c11388368b6996
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/settings/VoiceInputOutputSettings.java | 16 | ||||
-rw-r--r-- | src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java | 3 |
2 files changed, 9 insertions, 10 deletions
diff --git a/src/com/android/settings/VoiceInputOutputSettings.java b/src/com/android/settings/VoiceInputOutputSettings.java index 1e86801..9e3add4 100644 --- a/src/com/android/settings/VoiceInputOutputSettings.java +++ b/src/com/android/settings/VoiceInputOutputSettings.java @@ -51,12 +51,12 @@ public class VoiceInputOutputSettings implements OnPreferenceChangeListener { private static final String TAG = "VoiceInputOutputSettings"; - private static final String KEY_VOICE_INPUT_CATEGORY = "voice_input_category"; + private static final String KEY_VOICE_CATEGORY = "voice_category"; private static final String KEY_RECOGNIZER = "recognizer"; private static final String KEY_RECOGNIZER_SETTINGS = "recognizer_settings"; private PreferenceGroup mParent; - private PreferenceCategory mVoiceInputCategory; + private PreferenceCategory mVoiceCategory; private ListPreference mRecognizerPref; private PreferenceScreen mSettingsPref; private SettingsPreferenceFragment mFragment; @@ -70,11 +70,11 @@ public class VoiceInputOutputSettings implements OnPreferenceChangeListener { public void onCreate() { mParent = (PreferenceGroup) mFragment.getPreferenceScreen(); - mVoiceInputCategory = (PreferenceCategory) mParent.findPreference(KEY_VOICE_INPUT_CATEGORY); - mRecognizerPref = (ListPreference) mVoiceInputCategory.findPreference(KEY_RECOGNIZER); + mVoiceCategory = (PreferenceCategory) mParent.findPreference(KEY_VOICE_CATEGORY); + mRecognizerPref = (ListPreference) mVoiceCategory.findPreference(KEY_RECOGNIZER); mRecognizerPref.setOnPreferenceChangeListener(this); mSettingsPref = (PreferenceScreen) - mVoiceInputCategory.findPreference(KEY_RECOGNIZER_SETTINGS); + mVoiceCategory.findPreference(KEY_RECOGNIZER_SETTINGS); mAvailableRecognizersMap = new HashMap<String, ResolveInfo>(); @@ -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 45621e5..5c85374 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()); |