mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
show delimiter when language requires it
This commit is contained in:
parent
0f9bcd9898
commit
798f8421da
1 changed files with 3 additions and 1 deletions
|
@ -80,6 +80,7 @@ public class DictBrowseDelegate extends DelegateBase
|
||||||
public PatDesc[] m_pats;
|
public PatDesc[] m_pats;
|
||||||
public int[] m_counts;
|
public int[] m_counts;
|
||||||
public boolean m_expanded;
|
public boolean m_expanded;
|
||||||
|
public String m_delim;
|
||||||
|
|
||||||
public DictBrowseState()
|
public DictBrowseState()
|
||||||
{
|
{
|
||||||
|
@ -155,7 +156,7 @@ public class DictBrowseDelegate extends DelegateBase
|
||||||
{
|
{
|
||||||
TextView text = (TextView)
|
TextView text = (TextView)
|
||||||
inflate( android.R.layout.simple_list_item_1 );
|
inflate( android.R.layout.simple_list_item_1 );
|
||||||
String str = XwJNI.di_nthWord( m_diClosure, position, null );
|
String str = XwJNI.di_nthWord( m_diClosure, position, m_browseState.m_delim );
|
||||||
if ( null != str ) {
|
if ( null != str ) {
|
||||||
if ( SHOW_NUM ) {
|
if ( SHOW_NUM ) {
|
||||||
str = String.format( "%1$5d %2$s", position, str );
|
str = String.format( "%1$5d %2$s", position, str );
|
||||||
|
@ -542,6 +543,7 @@ public class DictBrowseDelegate extends DelegateBase
|
||||||
|| !XwJNI.dict_hasDuplicates( m_dict ) ) {
|
|| !XwJNI.dict_hasDuplicates( m_dict ) ) {
|
||||||
pats[ii].tilePat = choices[0];
|
pats[ii].tilePat = choices[0];
|
||||||
} else {
|
} else {
|
||||||
|
m_browseState.m_delim = DELIM;
|
||||||
showDialogFragment( DlgID.CHOOSE_TILES, (Object)choices, ii );
|
showDialogFragment( DlgID.CHOOSE_TILES, (Object)choices, ii );
|
||||||
pending = true;
|
pending = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue