|
|
@ -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" |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|