pull/1419/head
gedoor 3 years ago
parent 237e20835c
commit de0cece1a8
  1. 1
      app/src/main/assets/updateLog.md
  2. 12
      app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt

@ -15,6 +15,7 @@
* 修复朗读错误时提示不消失的bug
* 修复滚动阅读选择文字错位bug by DuShuYuan
* 朗读语速调节添加微调按钮
* 其它bug修复,最近在高苹果系统,更新比较少
**2021/10/24**

@ -64,7 +64,9 @@ class ReadAloudDialog : BaseDialogFragment(R.layout.dialog_read_aloud) {
ivStop.setColorFilter(textColor)
ivTimer.setColorFilter(textColor)
tvTimer.setTextColor(textColor)
ivTtsSpeechReduce.setColorFilter(textColor)
tvTtsSpeed.setTextColor(textColor)
ivTtsSpeechAdd.setColorFilter(textColor)
ivCatalog.setColorFilter(textColor)
tvCatalog.setTextColor(textColor)
ivMainMenu.setColorFilter(textColor)
@ -112,6 +114,16 @@ class ReadAloudDialog : BaseDialogFragment(R.layout.dialog_read_aloud) {
seekTtsSpeechRate.isEnabled = !isChecked
upTtsSpeechRate()
}
ivTtsSpeechReduce.setOnClickListener {
seekTtsSpeechRate.progress = AppConfig.ttsSpeechRate - 1
AppConfig.ttsSpeechRate = AppConfig.ttsSpeechRate - 1
upTtsSpeechRate()
}
ivTtsSpeechAdd.setOnClickListener {
seekTtsSpeechRate.progress = AppConfig.ttsSpeechRate + 1
AppConfig.ttsSpeechRate = AppConfig.ttsSpeechRate + 1
upTtsSpeechRate()
}
//设置保存的默认值
seekTtsSpeechRate.progress = AppConfig.ttsSpeechRate
seekTtsSpeechRate.setOnSeekBarChangeListener(object : SeekBarChangeListener {

Loading…
Cancel
Save