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) {
|
||||
val songs = repository.allSongs()
|
||||
MusicPlayerRemote.openAndShuffleQueue(
|
||||
songs,
|
||||
true
|
||||
)
|
||||
withContext(Main) {
|
||||
MusicPlayerRemote.openAndShuffleQueue(songs, true)
|
||||
}
|
||||
}
|
||||
|
||||
fun renameRoomPlaylist(playListId: Long, name: String) = viewModelScope.launch(IO) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue