pull/61/head^2
kunfei 5 years ago
parent 513fbe4705
commit 1f5ec0d839
  1. 14
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt

@ -60,19 +60,9 @@ class ReadRssActivity : VMBaseActivity<ReadRssViewModel>(R.layout.activity_rss_r
upJavaScriptEnable() upJavaScriptEnable()
val url = NetworkUtils.getAbsoluteURL(it.origin, it.link) val url = NetworkUtils.getAbsoluteURL(it.origin, it.link)
if (viewModel.rssSource?.loadWithBaseUrl == true) { if (viewModel.rssSource?.loadWithBaseUrl == true) {
webView.loadDataWithBaseURL( webView.loadDataWithBaseURL(url, content, "text/html", "utf-8", url)
url,
"<style>img{max-width:100%}</style>$content",
"text/html",
"utf-8",
url
)
} else { } else {
webView.loadData( webView.loadData(content, "text/html", "utf-8")
"<style>img{max-width:100%}</style>$content",
"text/html",
"utf-8"
)
} }
} }
}) })

Loading…
Cancel
Save