mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
fix:首次朗读后,其他书的tts引擎依然是首次朗读的引擎
This commit is contained in:
@@ -215,6 +215,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
*/
|
||||
fun readAloud(play: Boolean = true) {
|
||||
book?.let {
|
||||
ReadAloud.upReadAloudClass()
|
||||
ReadAloud.play(appCtx, play)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ class HttpTtsEditViewModel(app: Application) : BaseViewModel(app) {
|
||||
id = httpTTS.id
|
||||
execute {
|
||||
appDb.httpTTSDao.insert(httpTTS)
|
||||
ReadAloud.upReadAloudClass()
|
||||
}.onSuccess {
|
||||
success?.invoke()
|
||||
}
|
||||
|
||||
@@ -112,7 +112,6 @@ class ReadAloudConfigDialog : DialogFragment() {
|
||||
}
|
||||
PreferKey.ttsEngine -> {
|
||||
upPreferenceSummary(findPreference(key), speakEngineSummary)
|
||||
ReadAloud.upReadAloudClass()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user