From f7325563f535eb204c7a96c5c94303d3e8a6108a Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 5 Apr 2019 11:08:18 +0200 Subject: [PATCH] Fixed crash --- app/src/main/java/eu/faircode/email/EntityMessage.java | 2 +- app/src/main/java/eu/faircode/email/MessageHelper.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityMessage.java b/app/src/main/java/eu/faircode/email/EntityMessage.java index 74a42ac8a2..bef9d8fa1f 100644 --- a/app/src/main/java/eu/faircode/email/EntityMessage.java +++ b/app/src/main/java/eu/faircode/email/EntityMessage.java @@ -100,7 +100,7 @@ public class EntityMessage implements Serializable { public String headers; public Boolean raw; public String subject; - public Integer size; + public Long size; @NonNull public Boolean content = false; public String preview; diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 30248e033a..6c85b351fe 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -515,8 +515,8 @@ public class MessageHelper { return subject; } - Integer getSize() throws MessagingException { - int size = imessage.getSize(); + Long getSize() throws MessagingException { + long size = imessage.getSize(); if (size == 0) throw new MessagingException("Message empty"); return (size < 0 ? null : size);