mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 06:08:25 -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 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user