diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 59cd86c51..99c763b21 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -12,6 +12,11 @@ * 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源! * 关于最近版本有时候界面没有数据的问题是因为把LiveData组件换成了谷歌推荐的Flow组件导致的问题,正在查找解决办法 +**2021/09/20** + +1. 修复在线朗读跳段的bug +2. 优化默认封面,添加显示书名作者的配置, 后面会添加书名合作者大小位置配置 + **2021/09/18** 1. 朗读可以选择非默认tts diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index d7b4c7a3f..9ad67b540 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -93,11 +93,9 @@ class HttpReadAloudService : BaseReadAloudService(), if (isActive) { val fileName = md5SpeakFileName(it.url, AppConfig.ttsSpeechRate.toString(), item) - if (hasSpeakFile(fileName)) { //已经下载好的语音缓存 if (index == nowSpeak) { val file = getSpeakFileAsMd5(fileName) - @Suppress("BlockingMethodInNonBlockingContext") val fis = FileInputStream(file) playAudio(fis.fd) @@ -249,6 +247,7 @@ class HttpReadAloudService : BaseReadAloudService(), override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean { if (what == -38 && extra == 0) { + play() return true } AppLog.addLog("朗读错误,($what, $extra)")