list: make adding selection to playlist easier

Make adding selection information to a playlist signifigantly easier
than prior.
This commit is contained in:
Alexander Capehart
2023-07-04 15:19:48 -06:00
parent b4394c3a4a
commit b4ffffedfd
3 changed files with 12 additions and 7 deletions
@@ -63,15 +63,15 @@ abstract class SelectionFragment<VB : ViewBinding> :
requireContext().showToast(R.string.lng_queue_added)
true
}
R.id.action_selection_playlist_add -> {
musicModel.addToPlaylist(selectionModel.take())
true
}
R.id.action_selection_queue_add -> {
playbackModel.addToQueue(selectionModel.take())
requireContext().showToast(R.string.lng_queue_added)
true
}
R.id.action_selection_playlist_add -> {
musicModel.addToPlaylist(selectionModel.take())
true
}
R.id.action_selection_play -> {
playbackModel.play(selectionModel.take())
true