Consider images without name as inline

This commit is contained in:
M66B
2019-12-14 13:23:50 +01:00
parent d88abeaab5
commit f88879f8df
4 changed files with 11 additions and 8 deletions

View File

@@ -106,7 +106,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
}
private void bindTo(EntityAttachment attachment) {
view.setAlpha(attachment.isInline() && attachment.isImage() ? Helper.LOW_LIGHT : 1.0f);
view.setAlpha(attachment.isInlineImage() ? Helper.LOW_LIGHT : 1.0f);
ibDelete.setVisibility(readonly ? View.GONE : attachment.isInline() ? View.INVISIBLE : View.VISIBLE);
tvName.setText(attachment.name);