Prevent deleting inline attachments

This commit is contained in:
M66B 2019-01-06 14:14:03 +00:00
parent 02119e8ccb
commit 9bcb30d71a
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
}
private void bindTo(EntityAttachment attachment) {
ivDelete.setVisibility(readonly ? View.GONE : View.VISIBLE);
ivDelete.setVisibility(readonly ? View.GONE : attachment.isInline() ? View.INVISIBLE : View.VISIBLE);
tvName.setText(attachment.name);
if (attachment.size != null)