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

Commit eb995c79 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug with a duplicate entry" into jb-dev

parents cfed94a6 f14002ca
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -184,7 +184,10 @@ public class UserDictionaryAddWordContents {
            // TODO: sort in unicode order
            addLocaleDisplayNameToList(activity, localesList, l);
        }
        localesList.add(new LocaleRenderer(activity, "")); // meaning: all languages
        if (!"".equals(mLocale)) {
            // If mLocale is "", then we already inserted the "all languages" item, so don't do it
            addLocaleDisplayNameToList(activity, localesList, ""); // meaning: all languages
        }
        localesList.add(new LocaleRenderer(activity, null)); // meaning: select another locale
        return localesList;
    }