Skip to content
Snippets Groups Projects
Commit fa864bfd authored by Robert Stone's avatar Robert Stone Committed by Nicolas Pomepuy
Browse files

Update play/shuffle all icon when shuffle mode changes

parent 386edf4f
No related branches found
No related tags found
1 merge request!1383Refresh Android Auto on Shuffle Change. Fix shadowed variable.
Pipeline #223661 passed with stage
in 21 minutes and 10 seconds
......@@ -132,6 +132,10 @@ class MediaBrowserCallback(private val playbackService: PlaybackService) : IMedi
refreshActor.trySend(Unit)
}
fun onShuffleChanged() {
refreshActor.trySend(Unit)
}
override fun removeCallbacks() {
if (::refreshActor.isInitialized) {
medialibrary.removeMediaCb(this)
......
......@@ -1182,6 +1182,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner, CoroutineSc
fun shuffle() {
playlistManager.shuffle()
publishState()
browserCallback.onShuffleChanged()
}
private fun updateWidget() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment