From a777a4391ba4c16c0b7b29ebae0fa99c249c5e8e Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 4 Jan 2020 20:02:29 +0100 Subject: [PATCH] Small fix --- app/src/main/java/eu/faircode/email/EntityOperation.java | 2 +- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index f9ef983eee..24372d23f6 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -262,7 +262,7 @@ public class EntityOperation { db.message().setMessageUiHide(message.id, true); else if (ATTACHMENT.equals(name)) - db.attachment().setProgress(jargs.getLong(0), null); + db.attachment().setProgress(jargs.getLong(0), 0); queue(context, message.account, message.folder, message.id, name, jargs); diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index baa40f11f4..eaf3c6bed7 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1304,7 +1304,7 @@ public class MessageHelper { // Download attachment File file = EntityAttachment.getFile(context, local.id, local.name); - db.attachment().setProgress(local.id, null); + db.attachment().setProgress(local.id, 0); if (EntityAttachment.PGP_CONTENT.equals(apart.encrypt) || EntityAttachment.SMIME_CONTENT.equals(apart.encrypt)) {