mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-19 02:15:28 +00:00
Allow deleting attachments with an error
This commit is contained in:
parent
6e3f1561ee
commit
593bcd4653
1 changed files with 2 additions and 1 deletions
|
@ -113,7 +113,8 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
|
|||
private void bindTo(EntityAttachment attachment) {
|
||||
view.setAlpha(attachment.isInline() && attachment.isImage() ? Helper.LOW_LIGHT : 1.0f);
|
||||
|
||||
ibDelete.setVisibility(readonly ? View.GONE : attachment.isInline() ? View.INVISIBLE : View.VISIBLE);
|
||||
ibDelete.setVisibility(readonly ? View.GONE :
|
||||
attachment.isInline() && attachment.error == null ? View.INVISIBLE : View.VISIBLE);
|
||||
ivType.setImageDrawable(null);
|
||||
tvName.setText(attachment.name);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue