fix: loadDataWithBaseURL改回file:///android_asset/基址
This commit is contained in:
Binary file not shown.
@@ -27,7 +27,7 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
if (cacheFile.exists()) {
|
||||
val html = cacheFile.readText()
|
||||
loadDataWithBaseURL(null, html, "text/html", "UTF-8", null)
|
||||
loadDataWithBaseURL("file:///android_asset/", html, "text/html", "UTF-8", null)
|
||||
Log.i(TAG, "Loaded cached HTML (${cacheFile.length()}B)")
|
||||
} else {
|
||||
loadUrl("file:///android_asset/index.html")
|
||||
|
||||
Reference in New Issue
Block a user