|
|
|
@ -2,7 +2,6 @@ package io.legado.app.service |
|
|
|
|
|
|
|
|
|
import android.app.PendingIntent |
|
|
|
|
import android.media.MediaPlayer |
|
|
|
|
import android.util.Log |
|
|
|
|
import io.legado.app.constant.AppLog |
|
|
|
|
import io.legado.app.constant.EventBus |
|
|
|
|
import io.legado.app.help.AppConfig |
|
|
|
@ -77,7 +76,6 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
|
|
|
|
|
|
private fun playNext() { |
|
|
|
|
readAloudNumber += contentList[nowSpeak].length + 1 |
|
|
|
|
Log.e("playNext", "$readAloudNumber") |
|
|
|
|
if (nowSpeak < contentList.lastIndex) { |
|
|
|
|
nowSpeak++ |
|
|
|
|
play() |
|
|
|
@ -262,7 +260,7 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
|
delay(500) |
|
|
|
|
playNext() |
|
|
|
|
} |
|
|
|
|
return false |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onCompletion(mp: MediaPlayer?) { |
|
|
|
|