mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-26 07:58:52 +01:00
test for null comment
This commit is contained in:
parent
fd18d8c95a
commit
e5758766f7
1 changed files with 5 additions and 3 deletions
|
@ -60,9 +60,11 @@ public class XWListItem extends LinearLayout {
|
|||
|
||||
public void setComment( String text )
|
||||
{
|
||||
TextView view = (TextView)findViewById( R.id.text_item2 );
|
||||
view.setVisibility( View.VISIBLE );
|
||||
view.setText( text );
|
||||
if ( null != text ) {
|
||||
TextView view = (TextView)findViewById( R.id.text_item2 );
|
||||
view.setVisibility( View.VISIBLE );
|
||||
view.setText( text );
|
||||
}
|
||||
}
|
||||
|
||||
public void setDeleteCallback( DeleteCallback cb )
|
||||
|
|
Loading…
Add table
Reference in a new issue