summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/tts/TtsEngineSettingsFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/tts/TtsEngineSettingsFragment.java')
-rw-r--r--src/com/android/settings/tts/TtsEngineSettingsFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/tts/TtsEngineSettingsFragment.java b/src/com/android/settings/tts/TtsEngineSettingsFragment.java
index 3f740d7..18d1fdb 100644
--- a/src/com/android/settings/tts/TtsEngineSettingsFragment.java
+++ b/src/com/android/settings/tts/TtsEngineSettingsFragment.java
@@ -141,7 +141,7 @@ public class TtsEngineSettingsFragment extends SettingsPreferenceFragment implem
if (loc != null){
entries[i] = loc.getDisplayName();
entryValues[i] = availableLangs.get(i);
- if (entryValues[i].equals(currentLocale)) {
+ if (availableLangs.get(i).equalsIgnoreCase(currentLocale)) {
selectedLanguageIndex = i;
}
}