pull/32/head
kunfei 5 years ago
parent c3a7f4991f
commit dda07dcd7d
  1. 2
      app/src/main/java/io/legado/app/service/ReadAloudService.kt
  2. 2
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -176,7 +176,7 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener, AudioManage
if (contentList.size < 1 || !ttsIsSuccess) {
return
}
if (!pause && requestFocus()) {
if (requestFocus()) {
postEvent(Bus.ALOUD_STATE, Status.PLAY)
ReadAloudNotification.upNotification(this)
for (i in nowSpeak until contentList.size) {

@ -420,7 +420,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
viewModel.openChapter(it)
page_view.upContent()
}
observeEventSticky<Boolean>(Bus.READ_ALOUD) { onClickReadAloud() }
observeEvent<Boolean>(Bus.READ_ALOUD) { onClickReadAloud() }
observeEvent<Boolean>(Bus.UP_CONFIG) {
Help.upSystemUiVisibility(window, !read_menu.isVisible)
page_view.upBg()

Loading…
Cancel
Save