fix(webview): try direct html injection to verify rendering capability

This commit is contained in:
MrPiglr 2026-02-12 13:37:18 -07:00
parent 504876ee72
commit 76a39ff701

View file

@ -76,7 +76,11 @@ public class MainActivity extends BridgeActivity {
webView.clearFormData(); webView.clearFormData();
webView.clearSslPreferences(); 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 // Force load our local test file
webView.loadUrl("file:///android_asset/public/test_red.html"); // webView.loadUrl("file:///android_asset/public/test_red.html");
} }
} }