diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 149e98065..4ffedd9e0 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -15,6 +15,7 @@ * 修复朗读错误时提示不消失的bug * 修复滚动阅读选择文字错位bug by DuShuYuan +* 朗读语速调节添加微调按钮 * 其它bug修复,最近在高苹果系统,更新比较少 **2021/10/24** 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 bbe5b060f..39911df6b 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 @@ -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 {