自动阅读的设置改为选择翻页动画

pull/1284/head
gedoor 3 years ago
parent 7fe69abf7e
commit 65c9c4fede
  1. 5
      app/src/main/java/io/legado/app/ui/book/read/config/AutoReadDialog.kt

@ -13,6 +13,7 @@ import io.legado.app.lib.theme.getPrimaryTextColor
import io.legado.app.service.BaseReadAloudService import io.legado.app.service.BaseReadAloudService
import io.legado.app.service.help.ReadAloud import io.legado.app.service.help.ReadAloud
import io.legado.app.ui.book.read.ReadBookActivity import io.legado.app.ui.book.read.ReadBookActivity
import io.legado.app.ui.book.read.ReadBookBaseActivity
import io.legado.app.ui.widget.seekbar.SeekBarChangeListener import io.legado.app.ui.widget.seekbar.SeekBarChangeListener
import io.legado.app.utils.ColorUtils import io.legado.app.utils.ColorUtils
import io.legado.app.utils.viewbindingdelegate.viewBinding import io.legado.app.utils.viewbindingdelegate.viewBinding
@ -99,7 +100,9 @@ class AutoReadDialog : BaseDialogFragment() {
dismissAllowingStateLoss() dismissAllowingStateLoss()
} }
binding.llSetting.setOnClickListener { binding.llSetting.setOnClickListener {
ReadAloudConfigDialog().show(childFragmentManager, "readAloudConfigDialog") (activity as ReadBookBaseActivity).showPageAnimConfig {
(activity as ReadBookActivity).upPageAnim()
}
} }
binding.llCatalog.setOnClickListener { callBack?.openChapterList() } binding.llCatalog.setOnClickListener { callBack?.openChapterList() }
binding.llAutoPageStop.setOnClickListener { binding.llAutoPageStop.setOnClickListener {

Loading…
Cancel
Save