mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
7a59cb122b
commit
d2b96094e9
@ -430,7 +430,7 @@ class AudioPlayService : BaseService(),
|
||||
private fun upMediaSessionPlaybackState(state: Int) {
|
||||
mediaSessionCompat?.setPlaybackState(
|
||||
PlaybackStateCompat.Builder()
|
||||
.setActions(MediaHelp.MEDIA_SESSION_ACTIONS)
|
||||
.setActions(PlaybackStateCompat.ACTION_SEEK_TO)
|
||||
.setState(state, exoPlayer.currentPosition, 1f)
|
||||
.setBufferedPosition(exoPlayer.bufferedPosition)
|
||||
.build()
|
||||
|
Loading…
Reference in New Issue
Block a user