Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a7deb89 authored by Venkataraman Nerellapalli's avatar Venkataraman Nerellapalli Committed by Gerrit - the friendly Code Review server
Browse files

Fix for multiple entry of languages in language list

While adding full name of a language in LanguageList(ArrayList),
short name is replaced with full name and one more element with
full name is added. This extra element should not be added.

Change-Id: Id8a33efd4f14eeb7f1ad9e7afa195d18e9b497fe
parent c73102b8
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -147,8 +147,6 @@ public class LocalePicker extends ListFragment {
                        Log.v(TAG, "  and adding "+ toTitleCase(
                                getDisplayName(l, specialLocaleCodes, specialLocaleNames)));
                    }
                    localeInfos.add(new LocaleInfo(toTitleCase(
                            getDisplayName(l, specialLocaleCodes, specialLocaleNames)), l));
                } else {
                    String displayName = toTitleCase(l.getDisplayLanguage(l));
                    if (DEBUG) {