|
|
@ -497,8 +497,9 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo |
|
|
|
page_view.upContent() |
|
|
|
page_view.upContent() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
observeEvent<Int>(Bus.TTS_START) { chapterStart -> |
|
|
|
observeEventSticky<Int>(Bus.TTS_START) { chapterStart -> |
|
|
|
launch(IO) { |
|
|
|
launch(IO) { |
|
|
|
|
|
|
|
if (BaseReadAloudService.isPlay()) { |
|
|
|
ReadBook.curTextChapter?.let { |
|
|
|
ReadBook.curTextChapter?.let { |
|
|
|
val pageStart = chapterStart - it.getReadLength(ReadBook.durPageIndex) |
|
|
|
val pageStart = chapterStart - it.getReadLength(ReadBook.durPageIndex) |
|
|
|
it.page(ReadBook.durPageIndex)?.upPageAloudSpan(pageStart) |
|
|
|
it.page(ReadBook.durPageIndex)?.upPageAloudSpan(pageStart) |
|
|
@ -508,6 +509,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
observeEvent<String>(Bus.REPLACE) { |
|
|
|
observeEvent<String>(Bus.REPLACE) { |
|
|
|
ReplaceEditDialog().show(supportFragmentManager, "replaceEditDialog") |
|
|
|
ReplaceEditDialog().show(supportFragmentManager, "replaceEditDialog") |
|
|
|
} |
|
|
|
} |
|
|
|