mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 06:31:17 +00:00
Skip opening auto opening empty files
This commit is contained in:
parent
9eeb406a28
commit
56a4591d9d
1 changed files with 3 additions and 1 deletions
|
@ -217,7 +217,9 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
|
||||||
if (properties != null) {
|
if (properties != null) {
|
||||||
String aid = properties.getValue("attachment");
|
String aid = properties.getValue("attachment");
|
||||||
if (aid != null) {
|
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);
|
properties.setValue("attachment", null);
|
||||||
onView(attachment);
|
onView(attachment);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue