diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index 1e4ace654..9da05ab78 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -115,15 +115,6 @@ class ReadBookActivity : VMBaseActivity(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() - } - }) } diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt index aaba5fda2..c48fbb159 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt @@ -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() } }