|
|
@ -328,6 +328,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea |
|
|
|
observeEvent<Int>(Bus.TTS_RANGE_START) {} |
|
|
|
observeEvent<Int>(Bus.TTS_RANGE_START) {} |
|
|
|
observeEvent<String>(Bus.TIME_CHANGED) { page_view.upTime() } |
|
|
|
observeEvent<String>(Bus.TIME_CHANGED) { page_view.upTime() } |
|
|
|
observeEvent<Int>(Bus.BATTERY_CHANGED) { page_view.upBattery(it) } |
|
|
|
observeEvent<Int>(Bus.BATTERY_CHANGED) { page_view.upBattery(it) } |
|
|
|
|
|
|
|
observeEvent<BookChapter>(Bus.OPEN_CHAPTER) { viewModel.openChapter(it) } |
|
|
|
observeEventSticky<String>(Bus.READ_ALOUD) { onClickReadAloud() } |
|
|
|
observeEventSticky<String>(Bus.READ_ALOUD) { onClickReadAloud() } |
|
|
|
observeEventSticky<Int>(Bus.UP_CONFIG) { |
|
|
|
observeEventSticky<Int>(Bus.UP_CONFIG) { |
|
|
|
when (it) { |
|
|
|
when (it) { |
|
|
|