Merge pull request #1506 from luispinho/fix-android-auto-shuffle

Fix option to shuffle all songs in Android Auto
This commit is contained in:
Prathamesh More 2023-05-06 17:16:44 +05:30 committed by GitHub
commit 757a75a9dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ class MediaSessionCallback(
musicService.openQueue(songs, 0, true) musicService.openQueue(songs, 0, true)
} }
AutoMediaIDHelper.MEDIA_ID_MUSICS_BY_SHUFFLE -> { AutoMediaIDHelper.MEDIA_ID_MUSICS_BY_SHUFFLE -> {
val allSongs: ArrayList<Song> = songRepository.songs() as ArrayList<Song> val allSongs = songRepository.songs().toMutableList()
makeShuffleList(allSongs, -1) makeShuffleList(allSongs, -1)
musicService.openQueue(allSongs, 0, true) musicService.openQueue(allSongs, 0, true)
} }