diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-14 10:29:26 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-14 10:29:26 +0200 |
commit | 471ed7838a8ef3cbb0e13c2aa1c777ca66372247 (patch) | |
tree | 030c212d5d79ac5ab629d172366e5a972c334fe6 /src/eu | |
parent | d067448808801b49732e1a64b9b573267e0dee37 (diff) |
fixed #204
Diffstat (limited to 'src/eu')
-rw-r--r-- | src/eu/siacs/conversations/ui/ConversationFragment.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java index b5c5f592..098285e2 100644 --- a/src/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/eu/siacs/conversations/ui/ConversationFragment.java @@ -683,12 +683,16 @@ public class ConversationFragment extends Fragment { break; } } - for(Message message : this.conversation.getMessages()) { - if (!this.messageList.contains(message)) { - this.messageList.add(message); + if (this.conversation.getMessages().size() == 0) { + this.messageList.clear(); + } else { + for(Message message : this.conversation.getMessages()) { + if (!this.messageList.contains(message)) { + this.messageList.add(message); + } } + updateStatusMessages(); } - updateStatusMessages(); this.messageListAdapter.notifyDataSetChanged(); if (conversation.getMode() == Conversation.MODE_SINGLE) { if (messageList.size() >= 1) { |