Unverified Commit b73c2287 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito Committed by GitHub

Merge pull request #688 from sscholl/develop

[NEW] Support multiple attachments
parents 449e639e 256380ff
......@@ -79,6 +79,7 @@ public class RocketChatMessageAttachmentsLayout extends LinearLayout {
}
this.attachments = attachments;
removeAllViews();
for (int i = 0, size = attachments.size(); i < size; i++) {
appendAttachmentView(attachments.get(i), autoloadImages, true);
}
......@@ -89,7 +90,6 @@ public class RocketChatMessageAttachmentsLayout extends LinearLayout {
return;
}
removeAllViews();
View attachmentView = inflater.inflate(R.layout.message_inline_attachment, this, false);
colorizeAttachmentBar(attachment, attachmentView, showAttachmentStrip);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment