|
|
@ -122,13 +122,19 @@ class ReadAloudDialog : BaseDialogFragment() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun initEvent() = with(binding) { |
|
|
|
private fun initEvent() = with(binding) { |
|
|
|
llMainMenu.setOnClickListener { callBack?.showMenuBar(); dismiss() } |
|
|
|
llMainMenu.setOnClickListener { |
|
|
|
|
|
|
|
callBack?.showMenuBar() |
|
|
|
|
|
|
|
dismissAllowingStateLoss() |
|
|
|
|
|
|
|
} |
|
|
|
llSetting.setOnClickListener { |
|
|
|
llSetting.setOnClickListener { |
|
|
|
ReadAloudConfigDialog().show(childFragmentManager, "readAloudConfigDialog") |
|
|
|
ReadAloudConfigDialog().show(childFragmentManager, "readAloudConfigDialog") |
|
|
|
} |
|
|
|
} |
|
|
|
tvPre.setOnClickListener { ReadBook.moveToPrevChapter(upContent = true, toLast = false) } |
|
|
|
tvPre.setOnClickListener { ReadBook.moveToPrevChapter(upContent = true, toLast = false) } |
|
|
|
tvNext.setOnClickListener { ReadBook.moveToNextChapter(true) } |
|
|
|
tvNext.setOnClickListener { ReadBook.moveToNextChapter(true) } |
|
|
|
ivStop.setOnClickListener { ReadAloud.stop(requireContext()); dismiss() } |
|
|
|
ivStop.setOnClickListener { |
|
|
|
|
|
|
|
ReadAloud.stop(requireContext()) |
|
|
|
|
|
|
|
dismissAllowingStateLoss() |
|
|
|
|
|
|
|
} |
|
|
|
ivPlayPause.setOnClickListener { callBack?.onClickReadAloud() } |
|
|
|
ivPlayPause.setOnClickListener { callBack?.onClickReadAloud() } |
|
|
|
ivPlayPrev.setOnClickListener { ReadAloud.prevParagraph(requireContext()) } |
|
|
|
ivPlayPrev.setOnClickListener { ReadAloud.prevParagraph(requireContext()) } |
|
|
|
ivPlayNext.setOnClickListener { ReadAloud.nextParagraph(requireContext()) } |
|
|
|
ivPlayNext.setOnClickListener { ReadAloud.nextParagraph(requireContext()) } |
|
|
|