diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-11-13 12:09:33 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-11-20 13:34:29 +0100 |
commit | 07483f1d44cc3ea474e0a47e53253955da3aa4d1 (patch) | |
tree | 59d95874b4c30d46af09e32778dedbf5f8d7d836 /components | |
parent | b5b8c6c2a8b41c9829af52f22e685dfae249c5e3 (diff) | |
download | servo-07483f1d44cc3ea474e0a47e53253955da3aa4d1.tar.gz servo-07483f1d44cc3ea474e0a47e53253955da3aa4d1.zip |
Switch play and pause buttons according to playback state
Diffstat (limited to 'components')
-rw-r--r-- | components/constellation/constellation.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 8f6cdce0808..82b99938f3b 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -1790,7 +1790,8 @@ where match event { MediaSessionEvent::PlaybackStateChange(ref state) => { match state { - MediaSessionPlaybackState::Playing => (), + MediaSessionPlaybackState::Playing | + MediaSessionPlaybackState::Paused => (), _ => return, }; }, |