From dda07dcd7d54833bcaa39480a4b214f3e7674d3a Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 26 Aug 2019 09:01:10 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/ReadAloudService.kt | 2 +- app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/ReadAloudService.kt b/app/src/main/java/io/legado/app/service/ReadAloudService.kt index 2dca6a24a..cc2cf51e9 100644 --- a/app/src/main/java/io/legado/app/service/ReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/ReadAloudService.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) { diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index 424fec041..0dd3790eb 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -420,7 +420,7 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea viewModel.openChapter(it) page_view.upContent() } - observeEventSticky(Bus.READ_ALOUD) { onClickReadAloud() } + observeEvent(Bus.READ_ALOUD) { onClickReadAloud() } observeEvent(Bus.UP_CONFIG) { Help.upSystemUiVisibility(window, !read_menu.isVisible) page_view.upBg()