mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Add work-around for Asus Transformer WebView display bug
This commit is contained in:
parent
8832303c76
commit
78428e287b
@ -179,8 +179,14 @@ public class MessageWebView extends RigidWebView {
|
||||
}
|
||||
content += HtmlConverter.cssStylePre();
|
||||
content += "</head><body>" + text + "</body></html>";
|
||||
|
||||
// Workaround for asus transformer devices
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN) {
|
||||
loadData(content, "text/html; charset=UTF-8", "utf-8");
|
||||
} else {
|
||||
loadDataWithBaseURL("http://", content, "text/html", "utf-8", null);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Emulate the shift key being pressed to trigger the text selection mode
|
||||
|
Loading…
Reference in New Issue
Block a user