1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Render html code to make white on DarkTheme (fixes 4196)

This commit is contained in:
Bernhard Redl 2012-04-04 01:46:22 +02:00
parent cd8224fa6b
commit eba886b85d

View File

@ -526,7 +526,13 @@ public class SingleMessageView extends LinearLayout implements OnClickListener,
String type; String type;
String text = pgpData.getDecryptedData(); String text = pgpData.getDecryptedData();
if (text != null) { 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 { } else {
// getTextForDisplay() always returns HTML-ified content. // getTextForDisplay() always returns HTML-ified content.
text = message.getTextForDisplay(); text = message.getTextForDisplay();