mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:27:19 +00:00
fix(webview): try direct html injection to verify rendering capability
This commit is contained in:
parent
504876ee72
commit
76a39ff701
1 changed files with 5 additions and 1 deletions
|
|
@ -76,7 +76,11 @@ public class MainActivity extends BridgeActivity {
|
|||
webView.clearFormData();
|
||||
webView.clearSslPreferences();
|
||||
|
||||
// TEST 1: Direct HTML Injection (Bypasses File System)
|
||||
String htmlData = "<html><body style='background-color:green;'><h1>SOFTWARE RENDERING WORKING</h1></body></html>";
|
||||
webView.loadDataWithBaseURL(null, htmlData, "text/html", "UTF-8", null);
|
||||
|
||||
// Force load our local test file
|
||||
webView.loadUrl("file:///android_asset/public/test_red.html");
|
||||
// webView.loadUrl("file:///android_asset/public/test_red.html");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue