优化 #5611
This commit is contained in:
@@ -310,6 +310,10 @@ abstract class BaseReadAloudService : BaseService(),
|
||||
@SuppressLint("WakelockTimeout")
|
||||
@CallSuper
|
||||
open fun resumeReadAloud() {
|
||||
resumeReadAloudInternal()
|
||||
}
|
||||
|
||||
private fun resumeReadAloudInternal() {
|
||||
pause = false
|
||||
needResumeOnAudioFocusGain = false
|
||||
needResumeOnCallStateIdle = false
|
||||
@@ -677,14 +681,14 @@ abstract class BaseReadAloudService : BaseService(),
|
||||
|
||||
open fun prevChapter() {
|
||||
toLast = false
|
||||
resumeReadAloudInternal()
|
||||
ReadBook.moveToPrevChapter(true, toLast = false)
|
||||
play()
|
||||
}
|
||||
|
||||
open fun nextChapter() {
|
||||
ReadBook.upReadTime()
|
||||
AppLog.putDebug("${ReadBook.curTextChapter?.chapter?.title} 朗读结束跳转下一章并朗读")
|
||||
play()
|
||||
resumeReadAloudInternal()
|
||||
if (!ReadBook.moveToNextChapter(true)) {
|
||||
stopSelf()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user