|
|
@ -397,13 +397,17 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea |
|
|
|
page_view.upStyle() |
|
|
|
page_view.upStyle() |
|
|
|
} |
|
|
|
} |
|
|
|
observeEvent<Int>(Bus.TTS_START) { |
|
|
|
observeEvent<Int>(Bus.TTS_START) { |
|
|
|
|
|
|
|
viewModel.curTextChapter?.let { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
observeEvent<Boolean>(Bus.TTS_NEXT) { |
|
|
|
observeEvent<Boolean>(Bus.TTS_NEXT) { |
|
|
|
if (it) { |
|
|
|
if (it) { |
|
|
|
|
|
|
|
moveToNextChapter() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
viewModel.durPageIndex += viewModel.durPageIndex + 1 |
|
|
|
|
|
|
|
page_view.upContent() |
|
|
|
|
|
|
|
viewModel.saveRead() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|