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
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 12 additions and 7 deletions

View file

@ -5,6 +5,9 @@
#### What's New #### What's New
- Menus have been refreshed with a cleaner look - Menus have been refreshed with a cleaner look
#### What's Improved
- Made "Add to Playlist" action more prominent in selection toolbar
#### What's Fixed #### What's Fixed
- Fixed issue where one could not navigate to settings after navigating elsewhere - Fixed issue where one could not navigate to settings after navigating elsewhere
- Fixed the queue list being non-scrollable in certain cases - Fixed the queue list being non-scrollable in certain cases

View file

@ -63,15 +63,15 @@ abstract class SelectionFragment<VB : ViewBinding> :
requireContext().showToast(R.string.lng_queue_added) requireContext().showToast(R.string.lng_queue_added)
true true
} }
R.id.action_selection_playlist_add -> {
musicModel.addToPlaylist(selectionModel.take())
true
}
R.id.action_selection_queue_add -> { R.id.action_selection_queue_add -> {
playbackModel.addToQueue(selectionModel.take()) playbackModel.addToQueue(selectionModel.take())
requireContext().showToast(R.string.lng_queue_added) requireContext().showToast(R.string.lng_queue_added)
true true
} }
R.id.action_selection_playlist_add -> {
musicModel.addToPlaylist(selectionModel.take())
true
}
R.id.action_selection_play -> { R.id.action_selection_play -> {
playbackModel.play(selectionModel.take()) playbackModel.play(selectionModel.take())
true true

View file

@ -6,13 +6,15 @@
android:title="@string/lbl_play_next" android:title="@string/lbl_play_next"
android:icon="@drawable/ic_play_next_24" android:icon="@drawable/ic_play_next_24"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item
android:id="@+id/action_selection_playlist_add"
android:title="@string/lbl_playlist_add"
android:icon="@drawable/ic_playlist_add_24"
app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/action_selection_queue_add" android:id="@+id/action_selection_queue_add"
android:title="@string/lbl_queue_add" android:title="@string/lbl_queue_add"
app:showAsAction="never" /> app:showAsAction="never" />
<item
android:id="@+id/action_selection_playlist_add"
android:title="@string/lbl_playlist_add" />
<item <item
android:id="@+id/action_selection_play" android:id="@+id/action_selection_play"
android:title="@string/lbl_play_selected" android:title="@string/lbl_play_selected"