优化
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user