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

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

Loading…
Cancel
Save