mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-26 07:58:52 +01:00
add note to info alert, blank if not present
This commit is contained in:
parent
927ba028fb
commit
975c37ddae
1 changed files with 6 additions and 3 deletions
|
@ -99,12 +99,14 @@ public class DictsDelegate extends ListDelegateBase
|
|||
public int m_nWords;
|
||||
public long m_nBytes;
|
||||
public String m_note;
|
||||
public DictInfo( String name, String lang, int nWords, long nBytes ) {
|
||||
public DictInfo( String name, String lang, int nWords, long nBytes,
|
||||
String note )
|
||||
{
|
||||
m_name = name;
|
||||
m_lang = lang;
|
||||
m_nWords = nWords;
|
||||
m_nBytes = nBytes;
|
||||
m_note = "This is the note";
|
||||
m_note = null == note? "" : note;
|
||||
}
|
||||
public int compareTo( Object obj ) {
|
||||
DictInfo other = (DictInfo)obj;
|
||||
|
@ -1019,7 +1021,8 @@ public class DictsDelegate extends ListDelegateBase
|
|||
name = DictUtils.removeDictExtn( name );
|
||||
long nBytes = dict.optLong( "nBytes", -1 );
|
||||
int nWords = dict.optInt( "nWords", -1 );
|
||||
DictInfo info = new DictInfo( name, langName, nWords, nBytes );
|
||||
String note = dict.optString( "note" );
|
||||
DictInfo info = new DictInfo( name, langName, nWords, nBytes, note );
|
||||
if ( DictLangCache.haveDict( m_activity, langName, name ) ) {
|
||||
boolean matches = true;
|
||||
String curSum = DictLangCache.getDictMD5Sum( m_activity, name );
|
||||
|
|
Loading…
Add table
Reference in a new issue