Add work-around for Asus Transformer WebView display bug

This commit is contained in:
Jasper Klein 2013-12-08 01:01:40 +01:00 committed by cketti
parent 8832303c76
commit 78428e287b
1 changed files with 7 additions and 1 deletions

View File

@ -179,7 +179,13 @@ public class MessageWebView extends RigidWebView {
}
content += HtmlConverter.cssStylePre();
content += "</head><body>" + text + "</body></html>";
loadDataWithBaseURL("http://", content, "text/html", "utf-8", null);
// 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);
}
}
/*