mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-17 15:45:21 +01:00
Fix ArrayList cast issue preventing shuffling all songs in Android Auto;
This commit is contained in:
parent
ac2454ab6b
commit
1c19624841
1 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,7 @@ import code.name.monkey.retromusic.util.logD
|
||||||
import code.name.monkey.retromusic.util.logE
|
import code.name.monkey.retromusic.util.logE
|
||||||
import org.koin.core.component.KoinComponent
|
import org.koin.core.component.KoinComponent
|
||||||
import org.koin.core.component.inject
|
import org.koin.core.component.inject
|
||||||
|
import java.util.Arrays
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by hemanths on 2019-08-01.
|
* Created by hemanths on 2019-08-01.
|
||||||
|
@ -83,7 +84,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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue