pull/84/head
kunfei 5 years ago
parent 101dcbde83
commit 20134f757e
  1. 2
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -41,6 +41,7 @@ class HttpReadAloudService : BaseReadAloudService(),
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
job?.cancel()
mediaPlayer.release() mediaPlayer.release()
} }
@ -48,6 +49,7 @@ class HttpReadAloudService : BaseReadAloudService(),
mediaPlayer.reset() mediaPlayer.reset()
job?.cancel() job?.cancel()
playingIndex = -1 playingIndex = -1
nowSpeak = 0
super.newReadAloud(dataKey, play) super.newReadAloud(dataKey, play)
} }

Loading…
Cancel
Save