From cf590d21d4219a4dd77fa56abaa99960503919a4 Mon Sep 17 00:00:00 2001 From: Horis <8674809+821938089@users.noreply.github.com> Date: Tue, 20 Aug 2024 20:37:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/BaseReadAloudService.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 2446a6579..a56107f21 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt @@ -487,7 +487,7 @@ abstract class BaseReadAloudService : BaseService(), private fun choiceMediaStyle(): androidx.media.app.NotificationCompat.MediaStyle { val mediaStyle = androidx.media.app.NotificationCompat.MediaStyle() - .setShowActionsInCompactView(1, 2, 4); + .setShowActionsInCompactView(1, 2, 4) if (isVivoDevice) { //fix #4090 android 14 can not show play control in lock screen mediaStyle.setMediaSession(mediaSessionCompat.sessionToken) @@ -527,7 +527,7 @@ abstract class BaseReadAloudService : BaseService(), .setSound(null) .setLights(0, 0, 0) builder.setLargeIcon(cover) - // 按钮定义 : 停止, 上一章, 播放, 下一章, 定时 + // 按钮定义:上一章、播放、停止、下一章、定时 builder.addAction( R.drawable.ic_skip_previous, getString(R.string.previous_chapter), @@ -585,7 +585,7 @@ abstract class BaseReadAloudService : BaseService(), open fun prevChapter() { toLast = false - ReadBook.moveToPrevChapter(true, false) + ReadBook.moveToPrevChapter(true, toLast = false) } open fun nextChapter() {