From e4d5dc30629ec0b2f0a6577659ad36e5ce3c5efd Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 9 Nov 2019 12:52:45 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt index 4a40a53cf..d25bd6880 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt @@ -110,7 +110,7 @@ class ReadAloudDialog : DialogFragment() { } iv_menu.onLongClick { callBack?.openChapterList(); true } iv_stop.onClick { ReadAloud.stop(requireContext()); dismiss() } - iv_play_pause.onClick { postEvent(Bus.READ_ALOUD_BUTTON, true) } + iv_play_pause.onClick { callBack?.onClickReadAloud() } iv_play_prev.onClick { ReadAloud.prevParagraph(requireContext()) } iv_play_prev.onLongClick { postEvent(Bus.TTS_TURN_PAGE, -2); true } iv_play_next.onClick { ReadAloud.nextParagraph(requireContext()) } @@ -136,6 +136,7 @@ class ReadAloudDialog : DialogFragment() { interface CallBack { fun showMenu() fun openChapterList() + fun onClickReadAloud() var readAloudStatus: Int } } \ No newline at end of file