pull/42/head
kunfei 5 years ago
parent fc56d33f7c
commit 432344c4df
  1. 2
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -7,6 +7,7 @@ import io.legado.app.data.api.IHttpPostApi
import io.legado.app.help.FileHelp import io.legado.app.help.FileHelp
import io.legado.app.help.IntentHelp import io.legado.app.help.IntentHelp
import io.legado.app.help.http.HttpHelper import io.legado.app.help.http.HttpHelper
import io.legado.app.utils.LogUtils
import io.legado.app.utils.getPrefInt import io.legado.app.utils.getPrefInt
import io.legado.app.utils.getPrefString import io.legado.app.utils.getPrefString
import io.legado.app.utils.postEvent import io.legado.app.utils.postEvent
@ -187,6 +188,7 @@ class HttpReadAloudService : BaseReadAloudService(),
} }
override fun onCompletion(mp: MediaPlayer?) { override fun onCompletion(mp: MediaPlayer?) {
LogUtils.d("播放完成", contentList[nowSpeak])
readAloudNumber += contentList[nowSpeak].length + 1 readAloudNumber += contentList[nowSpeak].length + 1
if (nowSpeak < contentList.lastIndex) { if (nowSpeak < contentList.lastIndex) {
nowSpeak++ nowSpeak++

Loading…
Cancel
Save