mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Skip opening auto opening empty files
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user