Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78428e28 authored by Jasper Klein's avatar Jasper Klein Committed by cketti
Browse files

Add work-around for Asus Transformer WebView display bug

parent 8832303c
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -179,8 +179,14 @@ public class MessageWebView extends RigidWebView {
        }
        }
        content += HtmlConverter.cssStylePre();
        content += HtmlConverter.cssStylePre();
        content += "</head><body>" + text + "</body></html>";
        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);
            loadDataWithBaseURL("http://", content, "text/html", "utf-8", null);
        }
        }
    }


    /*
    /*
     * Emulate the shift key being pressed to trigger the text selection mode
     * Emulate the shift key being pressed to trigger the text selection mode