pull/1343/head
gedoor 3 years ago
parent 348d80446b
commit 1544e07473
  1. 6
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -203,12 +203,15 @@ class HttpReadAloudService : BaseReadAloudService(),
override fun pauseReadAloud(pause: Boolean) {
super.pauseReadAloud(pause)
mediaPlayer.pause()
kotlin.runCatching {
playIndexJob?.cancel()
mediaPlayer.pause()
}
}
override fun resumeReadAloud() {
super.resumeReadAloud()
kotlin.runCatching {
if (playingIndex == -1) {
play()
} else {
@ -216,6 +219,7 @@ class HttpReadAloudService : BaseReadAloudService(),
upPlayPos()
}
}
}
private fun upPlayPos() {
playIndexJob?.cancel()

Loading…
Cancel
Save