Browse Source

Fixed crash

main
M66B 6 years ago
parent
commit
7e89563b48
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/MessageHelper.java

+ 1
- 1
app/src/main/java/eu/faircode/email/MessageHelper.java View File

@ -239,7 +239,7 @@ public class MessageHelper {
private String getHtml(Part part) throws MessagingException { private String getHtml(Part part) throws MessagingException {
if (part.isMimeType("text/*")) if (part.isMimeType("text/*"))
try { try {
String s = (String) part.getContent();
String s = part.getContent().toString();
if (part.isMimeType("text/plain")) if (part.isMimeType("text/plain"))
s = "<pre>" + s.replaceAll("\\r?\\n", "<br />") + "</pre>"; s = "<pre>" + s.replaceAll("\\r?\\n", "<br />") + "</pre>";
return s; return s;


Loading…
Cancel
Save