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

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

View File

@@ -168,7 +168,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;
}
}