diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictLangCache.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictLangCache.java index d29ba24e9..3e535bc71 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictLangCache.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DictLangCache.java @@ -121,6 +121,19 @@ public class DictLangCache { return result; } + public static boolean haveDict( Context context, int code, String name ) + { + boolean found = false; + DictInfo[] infos = getInfosHaveLang( context, code ); + for ( DictInfo info : infos ) { + if ( info.name.equals( name ) ) { + found = true; + break; + } + } + return found; + } + private static String[] getHaveLang( Context context, int code, Comparator comp, boolean withCounts )