mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
fix display of wordlist note when there is none
This commit is contained in:
parent
8c4a1d2be6
commit
3dea7bd205
1 changed files with 11 additions and 5 deletions
|
@ -142,7 +142,6 @@ public class DictBrowseDelegate extends DelegateBase
|
||||||
private Spinner m_spinnerMin;
|
private Spinner m_spinnerMin;
|
||||||
private Spinner m_spinnerMax;
|
private Spinner m_spinnerMax;
|
||||||
private boolean m_filterAlertShown;
|
private boolean m_filterAlertShown;
|
||||||
private String m_desc;
|
|
||||||
private Runnable mResetChecker;
|
private Runnable mResetChecker;
|
||||||
|
|
||||||
private class DictListAdapter extends BaseAdapter
|
private class DictListAdapter extends BaseAdapter
|
||||||
|
@ -727,16 +726,23 @@ public class DictBrowseDelegate extends DelegateBase
|
||||||
makeSpinnerAdapter( m_spinnerMax, m_browseState.m_chosenMax );
|
makeSpinnerAdapter( m_spinnerMax, m_browseState.m_chosenMax );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String[] mDescWrap = null;
|
||||||
private String getDesc()
|
private String getDesc()
|
||||||
{
|
{
|
||||||
if ( null == m_desc ) {
|
if ( null == mDescWrap ) {
|
||||||
m_desc = XwJNI.dict_getDesc( m_dict );
|
String desc = XwJNI.dict_getDesc( m_dict );
|
||||||
if ( BuildConfig.NON_RELEASE ) {
|
if ( BuildConfig.NON_RELEASE ) {
|
||||||
String[] sums = DictLangCache.getDictMD5Sums( m_activity, m_name );
|
String[] sums = DictLangCache.getDictMD5Sums( m_activity, m_name );
|
||||||
m_desc += "\n\nmd5s: " + sums[0] + "\n" + sums[1];
|
if ( null != desc ) {
|
||||||
|
desc += "\n\n";
|
||||||
|
} else {
|
||||||
|
desc = "";
|
||||||
|
}
|
||||||
|
desc += "md5s: " + sums[0] + "\n" + sums[1];
|
||||||
}
|
}
|
||||||
|
mDescWrap = new String[] { desc };
|
||||||
}
|
}
|
||||||
return m_desc;
|
return mDescWrap[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
private FrameLayout removeList()
|
private FrameLayout removeList()
|
||||||
|
|
Loading…
Reference in a new issue