diff options
-rw-r--r-- | src/com/android/settings/tts/TextToSpeechSettings.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/tts/TextToSpeechSettings.java b/src/com/android/settings/tts/TextToSpeechSettings.java index d3f9c7b..8417cfd 100644 --- a/src/com/android/settings/tts/TextToSpeechSettings.java +++ b/src/com/android/settings/tts/TextToSpeechSettings.java @@ -268,7 +268,9 @@ public class TextToSpeechSettings extends SettingsPreferenceFragment implements return; } - mCurrentDefaultLocale = defaultLocale; + // ISO-3166 alpha 3 country codes are out of spec. If we won't normalize, + // we may end up with English (USA)and German (DEU). + mCurrentDefaultLocale = mEnginesHelper.parseLocaleString(defaultLocale.toString()); int defaultAvailable = mTts.setLanguage(defaultLocale); if (evaluateDefaultLocale()) { |