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, 注册多媒体按钮 */