优化
This commit is contained in:
@@ -270,11 +270,13 @@ object AudioPlay : CoroutineScope by MainScope() {
|
|||||||
fun skipTo(index: Int) {
|
fun skipTo(index: Int) {
|
||||||
Coroutine.async {
|
Coroutine.async {
|
||||||
stopPlay()
|
stopPlay()
|
||||||
durChapterIndex = index
|
if (index in 0..<simulatedChapterSize) {
|
||||||
durChapterPos = 0
|
durChapterIndex = index
|
||||||
durPlayUrl = ""
|
durChapterPos = 0
|
||||||
saveRead()
|
durPlayUrl = ""
|
||||||
loadPlayUrl()
|
saveRead()
|
||||||
|
loadPlayUrl()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user