forked from mirror/monocles_chat
Show document title in message as well (Cheogram)
This commit is contained in:
parent
76e8cb5f48
commit
f121e77ca9
1 changed files with 5 additions and 2 deletions
|
@ -853,9 +853,12 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||
}
|
||||
});
|
||||
WebxdcUpdate lastUpdate = activity.xmppConnectionService.findLastWebxdcUpdate(message);
|
||||
if (lastUpdate != null && lastUpdate.getSummary() != null) {
|
||||
if (lastUpdate != null && (lastUpdate.getSummary() != null || lastUpdate.getDocument() != null)) {
|
||||
viewHolder.messageBody.setVisibility(View.VISIBLE);
|
||||
viewHolder.messageBody.setText(lastUpdate.getSummary());
|
||||
viewHolder.messageBody.setText(
|
||||
(lastUpdate.getDocument() == null ? "" : lastUpdate.getDocument() + "\n") +
|
||||
(lastUpdate.getSummary() == null ? "" : lastUpdate.getSummary())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue