diff --git a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt index 2b3e9a320..803e2aa03 100644 --- a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssActivity.kt @@ -281,13 +281,6 @@ class ReadRssActivity : VMBaseActivity inner class CustomWebChromeClient : WebChromeClient() { - override fun onReceivedTitle(view: WebView?, title: String?) { - super.onReceivedTitle(view, title) - title.let { - binding.titleBar.title = title - } - } - override fun onShowCustomView(view: View?, callback: CustomViewCallback?) { requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR binding.llView.invisible() @@ -324,7 +317,11 @@ class ReadRssActivity : VMBaseActivity override fun onPageFinished(view: WebView?, url: String?) { super.onPageFinished(view, url) view?.title?.let { title -> - binding.titleBar.title = title + if (title != url && title != view.url && title.isNotBlank()) { + binding.titleBar.title = title + } else { + binding.titleBar.title = intent.getStringExtra("title") + } } }