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

Merge pull request #132 from aatdark/aatdark_issue_4196

Render APG-decrypted content as HTML for proper display with the dark theme
This commit is contained in:
cketti 2012-04-03 16:51:39 -07:00
commit 8f1b42bf22

View File

@ -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();