From 24f6c66b157d4271ed158653130ddc6f57128e61 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 11 Sep 2019 17:47:57 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/service/BaseReadAloudService.kt | 3 +-- 1 file changed, 1 insertion(+), 2 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 6a9feb3e4..6164cd83c 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt @@ -291,7 +291,7 @@ abstract class BaseReadAloudService : BaseService(), return request == AudioManager.AUDIOFOCUS_REQUEST_GRANTED } - fun upMediaSessionPlaybackState(state: Int) { + private fun upMediaSessionPlaybackState(state: Int) { mediaSessionCompat?.setPlaybackState( PlaybackStateCompat.Builder() .setActions(MediaHelp.MEDIA_SESSION_ACTIONS) @@ -300,7 +300,6 @@ abstract class BaseReadAloudService : BaseService(), ) } - /** * 初始化MediaSession, 注册多媒体按钮 */