detail: fix crash on multi-artist navigation
Caused by an unimplemented navigation branch in ArtistDetailFragment.
This commit is contained in:
@@ -221,8 +221,16 @@ class ArtistDetailFragment :
|
||||
.navigateSafe(ArtistDetailFragmentDirections.showArtist(show.artist.uid))
|
||||
}
|
||||
}
|
||||
is Show.SongArtistDecision,
|
||||
is Show.AlbumArtistDecision,
|
||||
is Show.SongArtistDecision -> {
|
||||
logD("Navigating to artist choices for ${show.song}")
|
||||
findNavController()
|
||||
.navigateSafe(ArtistDetailFragmentDirections.showArtistChoices(show.song.uid))
|
||||
}
|
||||
is Show.AlbumArtistDecision -> {
|
||||
logD("Navigating to artist choices for ${show.album}")
|
||||
findNavController()
|
||||
.navigateSafe(ArtistDetailFragmentDirections.showArtistChoices(show.album.uid))
|
||||
}
|
||||
is Show.GenreDetails,
|
||||
is Show.PlaylistDetails -> {
|
||||
error("Unexpected show command $show")
|
||||
|
||||
@@ -76,7 +76,7 @@ class AddToPlaylistDialog :
|
||||
|
||||
// --- VIEWMODEL SETUP ---
|
||||
pickerModel.setSongsToAdd(args.songUids)
|
||||
collect(musicModel.playlistDecision.flow, ::handleDecision)
|
||||
musicModel.playlistDecision.consume()
|
||||
collectImmediately(pickerModel.currentSongsToAdd, ::updatePendingSongs)
|
||||
collectImmediately(pickerModel.playlistAddChoices, ::updatePlaylistChoices)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user