Skip opening auto opening empty files

This commit is contained in:
M66B 2023-06-06 21:58:34 +02:00
parent 9eeb406a28
commit 56a4591d9d
1 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,9 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
if (properties != null) {
String aid = properties.getValue("attachment");
if (aid != null) {
if (attachment.id.equals(Long.parseLong(aid)) && attachment.available) {
if (attachment.id.equals(Long.parseLong(aid)) &&
attachment.available &&
attachment.size != null && attachment.size > 0) {
properties.setValue("attachment", null);
onView(attachment);
}