From de0cece1a8d90509c37eb2a29f82892be7a57fd8 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 2 Nov 2021 14:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/updateLog.md | 1 + .../app/ui/book/read/config/ReadAloudDialog.kt | 12 ++++++++++++ 2 files changed, 13 insertions(+) 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 {