Fixed a crash when casting
This commit is contained in:
parent
2791ac49c5
commit
165d180fe6
1 changed files with 3 additions and 4 deletions
|
@ -179,10 +179,9 @@ class LibraryViewModel(
|
||||||
|
|
||||||
fun shuffleSongs() = viewModelScope.launch(IO) {
|
fun shuffleSongs() = viewModelScope.launch(IO) {
|
||||||
val songs = repository.allSongs()
|
val songs = repository.allSongs()
|
||||||
MusicPlayerRemote.openAndShuffleQueue(
|
withContext(Main) {
|
||||||
songs,
|
MusicPlayerRemote.openAndShuffleQueue(songs, true)
|
||||||
true
|
}
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun renameRoomPlaylist(playListId: Long, name: String) = viewModelScope.launch(IO) {
|
fun renameRoomPlaylist(playListId: Long, name: String) = viewModelScope.launch(IO) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue