diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt index 089040264..3f14a5362 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadMenu.kt @@ -159,6 +159,7 @@ class ReadMenu @JvmOverloads constructor( private fun bindEvent() = binding.run { val chapterViewClickListener = OnClickListener { + BookRead.bookSource ?: return@OnClickListener if (AppConfig.readUrlInBrowser) { context.openUrl(tvChapterUrl.text.toString().substringBefore(",{")) } else { @@ -171,6 +172,7 @@ class ReadMenu @JvmOverloads constructor( } } val chapterViewLongClickListener = OnLongClickListener { + BookRead.bookSource ?: return@OnLongClickListener true context.alert(R.string.Open_fan) { setMessage(R.string.use_browser_open) okButton {