hide jid row in list item list when jid is null

This commit is contained in:
Daniel Gultsch 2016-01-26 14:47:34 +01:00
parent 7c0eae8059
commit edc6ce4ff2
1 changed files with 2 additions and 1 deletions

View File

@ -78,9 +78,10 @@ public class ListItemAdapter extends ArrayAdapter<ListItem> {
} }
final Jid jid = item.getJid(); final Jid jid = item.getJid();
if (jid != null) { if (jid != null) {
tvJid.setVisibility(View.VISIBLE);
tvJid.setText(jid.toString()); tvJid.setText(jid.toString());
} else { } else {
tvJid.setText(""); tvJid.setVisibility(View.GONE);
} }
tvName.setText(item.getDisplayName()); tvName.setText(item.getDisplayName());
loadAvatar(item,picture); loadAvatar(item,picture);