fix #4090 android 14 can not show play control in lock screen

This commit is contained in:
tick committed 2024-08-17 15:44:18 +08:00
1 parent 4c9e6a9fb2
commit 6e8581162b
1 file changed
+2
@@ -540,6 +540,8 @@ abstract class BaseReadAloudService : BaseService(),
builder.setStyle(
androidx.media.app.NotificationCompat.MediaStyle()
.setShowActionsInCompactView(0, 1, 2)
//fix #4090 android 14 can not show play control in lock screen
.setMediaSession(mediaSessionCompat.sessionToken)
)
return builder
}