Commit 6553cc47 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Playback: Avoid double call on play/pause

parent 33eb5c6c
......@@ -450,9 +450,8 @@ public class PlaybackService extends MediaBrowserServiceCompat{
* Remote / headset control events
if (action.equalsIgnoreCase(Constants.ACTION_REMOTE_PLAYPAUSE)) {
if (!playlistManager.hasCurrentMedia())
if (isPlaying()) pause();
if (!playlistManager.hasCurrentMedia()) loadLastAudioPlaylist();
else if (isPlaying()) pause();
else play();
} else if (action.equalsIgnoreCase(Constants.ACTION_REMOTE_PLAY)) {
if (!isPlaying() && playlistManager.hasCurrentMedia())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment