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

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

Loading…
Cancel
Save