pull/32/head
kunfei 5 years ago
parent ff95f864ef
commit 03b89125cc
  1. 1
      app/src/main/java/io/legado/app/constant/Bus.kt
  2. 3
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -8,4 +8,5 @@ object Bus {
const val TTS_RANGE_START = "readAloudNumber"
const val BATTERY_CHANGED = "batteryChanged"
const val TIME_CHANGED = "timeChanged"
const val READ_ALOUD = "readAloud"
}

@ -244,5 +244,8 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
observeEvent<Int>(Bus.ALOUD_STATE) { readAloudStatus = it }
observeEvent<Int>(Bus.TTS_START) {}
observeEvent<Int>(Bus.TTS_RANGE_START) {}
observeEvent<String>(Bus.TIME_CHANGED) {}
observeEvent<Int>(Bus.BATTERY_CHANGED) {}
observeEvent<String>(Bus.READ_ALOUD) { onClickReadAloud() }
}
}
Loading…
Cancel
Save