优化
This commit is contained in:
@@ -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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user