am cf3f7abb: am 999f23e2: Locale string comparisons must ignore case.

* commit 'cf3f7abbeb9a31e73ef41b3f6512ebb095ac9e90':
  Locale string comparisons must ignore case.
This commit is contained in:
Narayan Kamath
2012-01-23 09:18:25 -08:00
committed by Android Git Automerger

View File

@@ -168,7 +168,7 @@ public class TtsEngineSettingsFragment extends SettingsPreferenceFragment implem
if (loc != null){ if (loc != null){
entries[i] = loc.getDisplayName(); entries[i] = loc.getDisplayName();
entryValues[i] = availableLangs.get(i); entryValues[i] = availableLangs.get(i);
if (entryValues[i].equals(currentLocale)) { if (availableLangs.get(i).equalsIgnoreCase(currentLocale)) {
selectedLanguageIndex = i; selectedLanguageIndex = i;
} }
} }