Update HttpReadAloudService.kt
This commit is contained in:
@@ -196,7 +196,6 @@ class HttpReadAloudService : BaseReadAloudService(),
|
|||||||
val contentList = textChapter.getNeedReadAloud(0, readAloudByPage, 0, 1)
|
val contentList = textChapter.getNeedReadAloud(0, readAloudByPage, 0, 1)
|
||||||
.splitToSequence("\n")
|
.splitToSequence("\n")
|
||||||
.filter { it.isNotEmpty() }
|
.filter { it.isNotEmpty() }
|
||||||
.take(10)
|
|
||||||
.toList()
|
.toList()
|
||||||
contentList.forEach { content ->
|
contentList.forEach { content ->
|
||||||
currentCoroutineContext().ensureActive()
|
currentCoroutineContext().ensureActive()
|
||||||
|
|||||||
Reference in New Issue
Block a user