From 39785e5eab541d70388c69a162e2a0e196dbae28 Mon Sep 17 00:00:00 2001 From: zhongerxll <160529153+zhongerxll@users.noreply.github.com> Date: Fri, 30 May 2025 04:13:28 -0500 Subject: [PATCH] =?UTF-8?q?=E6=9C=97=E8=AF=BB=E6=9A=82=E5=81=9C=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=B8=8B=E4=B8=80=E7=AB=A0=E7=8E=B0=E5=9C=A8=E4=BC=9A?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=BC=80=E5=A7=8B=E6=92=AD=E6=94=BE;=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=97=E8=AF=BB=E6=9A=82=E5=81=9C=E6=97=B6?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E4=B8=8B=E4=B8=80=E7=AB=A0/=E6=AE=B5?= =?UTF-8?q?=EF=BC=8C=E7=B3=BB=E7=BB=9F=E5=AA=92=E4=BD=93=E6=8E=A7=E4=BB=B6?= =?UTF-8?q?=E8=BF=98=E4=BF=9D=E7=95=99=E5=9C=A8=E6=9A=82=E5=81=9C=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84=E9=97=AE=E9=A2=98=20(#5105)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/BaseReadAloudService.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt index bbfcd97a1..6b8b681fd 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt @@ -285,6 +285,7 @@ abstract class BaseReadAloudService : BaseService(), needResumeOnAudioFocusGain = false needResumeOnCallStateIdle = false upReadAloudNotification() + upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PLAYING) postEvent(EventBus.ALOUD_STATE, Status.PLAY) } @@ -664,11 +665,13 @@ abstract class BaseReadAloudService : BaseService(), open fun prevChapter() { toLast = false ReadBook.moveToPrevChapter(true, toLast = false) + play() } open fun nextChapter() { ReadBook.upReadTime() AppLog.putDebug("${ReadBook.curTextChapter?.chapter?.title} 朗读结束跳转下一章并朗读") + play() if (!ReadBook.moveToNextChapter(true)) { stopSelf() }