This commit is contained in:
Horis
2023-03-10 11:14:50 +08:00
parent d7630ee0d6
commit 75e91c54ea
2 changed files with 2 additions and 2 deletions
@@ -237,7 +237,7 @@ object ReadBook : CoroutineScope by MainScope() {
private fun curPageChanged() { private fun curPageChanged() {
callBack?.pageChanged() callBack?.pageChanged()
if (BaseReadAloudService.isRun) { if (BaseReadAloudService.isRun) {
ReadAloud.playByEventBus(!BaseReadAloudService.pause) readAloud(!BaseReadAloudService.pause)
} }
upReadTime() upReadTime()
preDownload() preDownload()
@@ -138,7 +138,7 @@ abstract class BaseReadAloudService : BaseService(),
IntentAction.nextParagraph -> nextP() IntentAction.nextParagraph -> nextP()
IntentAction.addTimer -> addTimer() IntentAction.addTimer -> addTimer()
IntentAction.setTimer -> setTimer(intent.getIntExtra("minute", 0)) IntentAction.setTimer -> setTimer(intent.getIntExtra("minute", 0))
else -> stopSelf() IntentAction.stop -> stopSelf()
} }
return super.onStartCommand(intent, flags, startId) return super.onStartCommand(intent, flags, startId)
} }