修复一个bug

pull/300/head
gedoor 4 years ago
parent 2cddd62624
commit c5c1d53fae
  1. 10
      app/src/main/java/io/legado/app/ui/book/read/config/AutoReadDialog.kt

@ -55,7 +55,8 @@ class AutoReadDialog : BaseDialogFragment() {
} }
private fun initData() { private fun initData() {
seek_auto_read.progress = ReadBookConfig.autoReadSpeed seek_auto_read.progress =
if (ReadBookConfig.autoReadSpeed < 10) 10 else ReadBookConfig.autoReadSpeed
} }
private fun initOnChange() { private fun initOnChange() {
@ -63,10 +64,11 @@ class AutoReadDialog : BaseDialogFragment() {
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) { override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
} }
override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit override fun onStartTrackingTouch(seekBar: SeekBar) = Unit
override fun onStopTrackingTouch(seekBar: SeekBar?) { override fun onStopTrackingTouch(seekBar: SeekBar) {
ReadBookConfig.autoReadSpeed = seek_auto_read.progress ReadBookConfig.autoReadSpeed =
if (seek_auto_read.progress < 10) 10 else seek_auto_read.progress
upTtsSpeechRate() upTtsSpeechRate()
} }
}) })

Loading…
Cancel
Save