@ -61,6 +61,9 @@ class RssArticlesActivity : VMBaseActivity<RssArticlesViewModel>(R.layout.activi
}
override fun readRss(rssArticle: RssArticle) {
startActivity<ReadRssActivity>(Pair("description", rssArticle.description))
startActivity<ReadRssActivity>(
Pair("description", rssArticle.description),
Pair("url", rssArticle.link)
)
@ -9,7 +9,12 @@ class ReadRssActivity : BaseActivity(R.layout.activity_rss_read) {
override fun onActivityCreated(savedInstanceState: Bundle?) {
val description = intent.getStringExtra("description")
val url = intent.getStringExtra("url")
if (description.isNullOrBlank()) {
webView.loadUrl(url)
} else {
webView.loadData("<style>img{max-width:100%}</style>$description", "text/html", "utf-8")