Revert "Consider images without name as inline"

This reverts commit f88879f8df.
This commit is contained in:
M66B
2019-12-14 16:09:12 +01:00
parent 5c87d2464e
commit 006533b15e
4 changed files with 8 additions and 11 deletions

View File

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