title: Properly set Repeat/Shuffle option in MediaControllerCompat.TransportControls
body: <p>I'm working on a simple audio streaming app based on the <a href="https://developer.android.com/guide/topics/media-apps/media-apps-overview" rel="nofollow noreferrer">Media app</a> architecture from official Android documentation:</p>
  
  <p><a href="https://i.stack.imgur.com/Xg7LP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xg7LP.png" alt="https://developer.android.com/guide/topics/media-apps/images/audio-activity-and-service.png"></a></p>
  
  <p>By using the <strong>MediaControllerCompat</strong> I'm trying to achieve the Repeat/Shuffle controls. But most of the options aren't working. E.g:</p>
  
  <p>The following code enables shuffling:</p>
  
  <pre><code>getTransportControls().setShuffleMode(PlaybackStateCompat.SHUFFLE_MODE_ALL);
  </code></pre>
  
  <p>But if I set the mode to none the player is still shuffling and has no effect for cancelation.</p>
  
  <pre><code>getTransportControls().setShuffleMode(PlaybackStateCompat.SHUFFLE_MODE_NONE);
  </code></pre>
  
  <p>Also the single/all repeat option isn't working</p>
  
  <pre><code>getTransportControls().setRepeatMode(PlaybackStateCompat.REPEAT_MODE_ONE);
  
  getTransportControls().setRepeatMode(PlaybackStateCompat.REPEAT_MODE_ALL);
  </code></pre>
  
  <p>Am I missing anything?</p>