Prevent deleting inline attachments

pull/147/head
M66B 6 years ago
parent 02119e8ccb
commit 9bcb30d71a

@ -103,7 +103,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
} }
private void bindTo(EntityAttachment attachment) { 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); tvName.setText(attachment.name);
if (attachment.size != null) if (attachment.size != null)

Loading…
Cancel
Save