mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
all places where dict lang is displayed can also display word count
This commit is contained in:
parent
64bcb8bb2b
commit
c83e4cc7a3
2 changed files with 5 additions and 16 deletions
|
@ -34,15 +34,11 @@ 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;
|
||||
}
|
||||
|
||||
DictInfo info = getInfo( context, name );
|
||||
int wordCount = info.wordCount;
|
||||
|
||||
String langName = getLangName( context, name );
|
||||
String result;
|
||||
if ( 0 == wordCount ) {
|
||||
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue