all places where dict lang is displayed can also display word count

This commit is contained in:
Andy2 2010-12-08 05:51:26 -08:00
parent 64bcb8bb2b
commit c83e4cc7a3
2 changed files with 5 additions and 16 deletions

View file

@ -34,14 +34,10 @@ public class DictLangCache {
new HashMap<String,DictInfo>();
private static String[] s_langNames;
public static String annotatedDictName( Context context, final String name,
boolean inclNWords )
public static String annotatedDictName( Context context, String name )
{
int wordCount = 0;
if ( inclNWords ) {
DictInfo info = getInfo( context, name );
wordCount = info.wordCount;
}
int wordCount = info.wordCount;
String langName = getLangName( context, name );
String result;
@ -54,12 +50,6 @@ public class DictLangCache {
return result;
}
public static String annotatedDictName( Context context,
String name )
{
return annotatedDictName( context, name, false );
}
public static String annotatedDictName( Context context, String name,
int lang )
{

View file

@ -65,8 +65,7 @@ public class DictsActivity extends XWListActivity
// append language name
view.setText( DictLangCache.
annotatedDictName( DictsActivity.this,
m_dicts[position],
true ) );
m_dicts[position] ) );
if ( !GameUtils.dictIsBuiltin( DictsActivity.this,
m_dicts[position] ) ) {
view.setDeleteCallback( DictsActivity.this );