This commit is contained in:
Horis committed 2024-03-05 18:29:16 +08:00
1 parent 6ddae97201
commit 9d5d3b4e42
1 file changed
-4
@@ -343,11 +343,7 @@ object ReadBook : CoroutineScope by MainScope() {
fun readAloud(play: Boolean = true, startPos: Int = 0) { fun readAloud(play: Boolean = true, startPos: Int = 0) {
book ?: return book ?: return
if (isLayoutAvailable) { if (isLayoutAvailable) {
if (!BaseReadAloudService.isRun) {
ReadAloud.play(appCtx, play, startPos = startPos) ReadAloud.play(appCtx, play, startPos = startPos)
} else {
ReadAloud.playByEventBus(play, startPos = startPos)
}
} }
} }