mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
show no conn options as a localizable, non-empty string rather than
empty string
This commit is contained in:
parent
e0a337ff4c
commit
3b41752382
1 changed files with 10 additions and 4 deletions
|
@ -84,12 +84,18 @@ public class CommsAddrRec {
|
|||
|
||||
public String toString( Context context )
|
||||
{
|
||||
String result;
|
||||
CommsConnType[] types = getTypes();
|
||||
if ( 0 == types.length ) {
|
||||
result = LocUtils.getString( context, R.string.note_none );
|
||||
} else {
|
||||
String[] strs = new String[types.length];
|
||||
for ( int ii = 0; ii < types.length; ++ii ) {
|
||||
strs[ii] = types[ii].longName( context );
|
||||
}
|
||||
return TextUtils.join( " + ", strs );
|
||||
result = TextUtils.join( " + ", strs );
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private static final CommsConnType[] s_hint = new CommsConnType[0];
|
||||
|
|
Loading…
Reference in a new issue