|
|
@ -9,7 +9,12 @@ class ReadRssActivity : BaseActivity(R.layout.activity_rss_read) { |
|
|
|
|
|
|
|
|
|
|
|
override fun onActivityCreated(savedInstanceState: Bundle?) { |
|
|
|
override fun onActivityCreated(savedInstanceState: Bundle?) { |
|
|
|
val description = intent.getStringExtra("description") |
|
|
|
val description = intent.getStringExtra("description") |
|
|
|
webView.loadData("<style>img{max-width:100%}</style>$description","text/html", "utf-8") |
|
|
|
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") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |