mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
d7630ee0d6
commit
75e91c54ea
@ -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()
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user