Switch play and pause buttons according to playback state

This commit is contained in:
Fernando Jiménez Moreno 2019-11-13 12:09:33 +01:00
parent b5b8c6c2a8
commit 07483f1d44
4 changed files with 34 additions and 15 deletions

View file

@ -1790,7 +1790,8 @@ where
match event {
MediaSessionEvent::PlaybackStateChange(ref state) => {
match state {
MediaSessionPlaybackState::Playing => (),
MediaSessionPlaybackState::Playing |
MediaSessionPlaybackState::Paused => (),
_ => return,
};
},