From eba886b85d26ec2ffd020d51b041681f6ce7ec44 Mon Sep 17 00:00:00 2001 From: Bernhard Redl Date: Wed, 4 Apr 2012 01:46:22 +0200 Subject: [PATCH] Render html code to make white on DarkTheme (fixes 4196) --- src/com/fsck/k9/view/SingleMessageView.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/view/SingleMessageView.java b/src/com/fsck/k9/view/SingleMessageView.java index 54b65b07b..c5109db8c 100644 --- a/src/com/fsck/k9/view/SingleMessageView.java +++ b/src/com/fsck/k9/view/SingleMessageView.java @@ -526,7 +526,13 @@ public class SingleMessageView extends LinearLayout implements OnClickListener, String type; String text = pgpData.getDecryptedData(); if (text != null) { - type = "text/plain"; + /* + * also return here html instead of text/plain. with text/plain the + * webview does not render the CSS on the darktheme to make the text + * white. so the user is not able to see the mailcontent. + */ + type = "text/html"; + } else { // getTextForDisplay() always returns HTML-ified content. text = message.getTextForDisplay();