mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
add haveDict()
This commit is contained in:
parent
a8c77bca88
commit
04f51bd392
1 changed files with 13 additions and 0 deletions
|
@ -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<DictInfo> comp,
|
||||
boolean withCounts )
|
||||
|
|
Loading…
Reference in a new issue