pull/32/head
kunfei 5 years ago
parent ebe9703445
commit 9b27244fee
  1. 9
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt
  2. 8
      app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt

@ -115,15 +115,6 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
fl_menu.runMenuOut()
MoreConfigDialog().show(supportFragmentManager, "moreConfig")
}
override fun toast(id: Int) {
this@ReadBookActivity.toast(id)
}
override fun dismiss() {
fl_menu.runMenuOut()
}
})
}

@ -106,7 +106,7 @@ class ReadMenu : FrameLayout {
}
private fun bindEvent() {
ll_floating_button.onClick { callback?.dismiss() }
ll_floating_button.onClick { runMenuOut() }
//阅读进度
seek_bar_read_page.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
@ -126,7 +126,7 @@ class ReadMenu : FrameLayout {
//朗读
fab_read_aloud.onClick {
postEvent(Bus.READ_ALOUD, true)
callback?.dismiss()
runMenuOut()
}
//自动翻页
@ -188,10 +188,6 @@ class ReadMenu : FrameLayout {
fun showReadStyle()
fun showMoreSetting()
fun toast(id: Int)
fun dismiss()
}
}

Loading…
Cancel
Save