From 7e89563b48b21bfe8745da534a7fe648c5dc5fa5 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 3 Aug 2018 17:34:27 +0000 Subject: [PATCH] Fixed crash --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 863c9b3d..5d401345 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -239,7 +239,7 @@ public class MessageHelper { private String getHtml(Part part) throws MessagingException { if (part.isMimeType("text/*")) try { - String s = (String) part.getContent(); + String s = part.getContent().toString(); if (part.isMimeType("text/plain")) s = "
" + s.replaceAll("\\r?\\n", "
") + "
"; return s;