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

View File

@ -237,7 +237,7 @@ object ReadBook : CoroutineScope by MainScope() {
private fun curPageChanged() {
callBack?.pageChanged()
if (BaseReadAloudService.isRun) {
ReadAloud.playByEventBus(!BaseReadAloudService.pause)
readAloud(!BaseReadAloudService.pause)
}
upReadTime()
preDownload()

View File

@ -138,7 +138,7 @@ abstract class BaseReadAloudService : BaseService(),
IntentAction.nextParagraph -> nextP()
IntentAction.addTimer -> addTimer()
IntentAction.setTimer -> setTimer(intent.getIntExtra("minute", 0))
else -> stopSelf()
IntentAction.stop -> stopSelf()
}
return super.onStartCommand(intent, flags, startId)
}