pull/32/head
kunfei 5 years ago
parent 25da02eed5
commit 5af6820f30
  1. 12
      app/src/main/java/io/legado/app/service/ReadAloudService.kt

@ -230,17 +230,17 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener, AudioManage
}
private fun prevP() {
if (nowSpeak < contentList.size - 1) {
readAloudNumber += contentList[nowSpeak].length
nowSpeak++
if (nowSpeak > 0) {
nowSpeak--
readAloudNumber -= contentList[nowSpeak].length
playTTS()
}
}
private fun nextP() {
if (nowSpeak > 0) {
nowSpeak--
readAloudNumber -= contentList[nowSpeak].length
if (nowSpeak < contentList.size - 1) {
readAloudNumber += contentList[nowSpeak].length
nowSpeak++
playTTS()
}
}

Loading…
Cancel
Save