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:
commit
8f1b42bf22
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user