pull/1395/head
gedoor 3 years ago
parent dc9798b847
commit afe47b8bf4
  1. 2
      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 {

Loading…
Cancel
Save