Added PDF previews

This commit is contained in:
M66B
2023-10-14 13:47:57 +02:00
parent 415c5d189b
commit f913347455
3 changed files with 62 additions and 34 deletions

View File

@@ -3650,9 +3650,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
List<EntityAttachment> images = new ArrayList<>();
if (thumbnails && bind_extras) {
for (EntityAttachment attachment : attachments)
if (attachment.isAttachment() && attachment.isImage()) {
if (attachment.isPDF() ||
(attachment.isAttachment() && attachment.isImage())) {
images.add(attachment);
if (attachment.available)
if (attachment.available && !attachment.isPDF())
iavailable++;
}
}