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:
parent
cd8224fa6b
commit
eba886b85d
@ -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