Commit 172d5263 authored by Geoffrey Métais's avatar Geoffrey Métais

Do not ask playback rate when stopped

parent 693a9bd1
......@@ -1071,7 +1071,8 @@ public class PlaybackService extends MediaBrowserServiceCompat{
pscb.setState(state, time, playlistManager.getPlayer().getRate());
final float rate = state == PlaybackStateCompat.STATE_STOPPED ? 1f : playlistManager.getPlayer().getRate();
pscb.setState(state, time, rate);
final int repeatType = playlistManager.getRepeating();
if (repeatType != Constants.REPEAT_NONE || hasNext())
actions |= PlaybackStateCompat.ACTION_SKIP_TO_NEXT;
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