优化
This commit is contained in:
@@ -259,7 +259,6 @@ object Restore {
|
|||||||
LauncherIconHelp.changeIcon(appCtx.getPrefString(PreferKey.launcherIcon))
|
LauncherIconHelp.changeIcon(appCtx.getPrefString(PreferKey.launcherIcon))
|
||||||
}
|
}
|
||||||
ThemeConfig.applyDayNight(appCtx)
|
ThemeConfig.applyDayNight(appCtx)
|
||||||
postEvent(EventBus.RECREATE, "")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -308,7 +308,9 @@ class HttpReadAloudService : BaseReadAloudService(),
|
|||||||
for (i in start..contentList[nowSpeak].length) {
|
for (i in start..contentList[nowSpeak].length) {
|
||||||
if (readAloudNumber + i > textChapter.getReadLength(pageIndex + 1)) {
|
if (readAloudNumber + i > textChapter.getReadLength(pageIndex + 1)) {
|
||||||
pageIndex++
|
pageIndex++
|
||||||
|
if (pageIndex < textChapter.pages.size) {
|
||||||
ReadBook.moveToNextPage()
|
ReadBook.moveToNextPage()
|
||||||
|
}
|
||||||
postEvent(EventBus.TTS_PROGRESS, readAloudNumber + i)
|
postEvent(EventBus.TTS_PROGRESS, readAloudNumber + i)
|
||||||
}
|
}
|
||||||
delay(sleep)
|
delay(sleep)
|
||||||
|
|||||||
Reference in New Issue
Block a user