Skip to content

Commit

Permalink
[MultiSelectionToolbarMenuProviders] dismiss cab after click
Browse files Browse the repository at this point in the history
chr56 committed Oct 28, 2024
1 parent 3238428 commit 43aefcb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -43,6 +43,7 @@ object MultiSelectionToolbarMenuProviders {
context.lifecycleScopeOrNewOne().launch {
convertToSongs(controller.selected, context).actionPlay(ShuffleMode.NONE, 0)
}
controller.unselectedAll()
true
}
}
@@ -53,6 +54,7 @@ object MultiSelectionToolbarMenuProviders {
context.lifecycleScopeOrNewOne().launch {
convertToSongs(controller.selected, context).actionPlayNext()
}
controller.unselectedAll()
true
}
}
@@ -64,6 +66,7 @@ object MultiSelectionToolbarMenuProviders {
convertToSongs(controller.selected, context)
.actionPlay(ShuffleMode.SHUFFLE, Random().nextInt(controller.selected.size))
}
controller.unselectedAll()
true
}
}
@@ -74,6 +77,7 @@ object MultiSelectionToolbarMenuProviders {
context.lifecycleScopeOrNewOne().launch {
convertToSongs(controller.selected, context).actionEnqueue()
}
controller.unselectedAll()
true
}
}
@@ -84,6 +88,7 @@ object MultiSelectionToolbarMenuProviders {
context.lifecycleScopeOrNewOne().launch {
convertToSongs(controller.selected, context).actionAddToPlaylist(context)
}
controller.unselectedAll()
true
}
}
@@ -99,6 +104,7 @@ object MultiSelectionToolbarMenuProviders {
else
TagBrowserActivity.launch(context, songs.first().data)
}
controller.unselectedAll()
true
}
}
@@ -118,6 +124,7 @@ object MultiSelectionToolbarMenuProviders {
playlists.actionDeletePlaylists(context)
}
}
controller.unselectedAll()
true
}
}
@@ -128,6 +135,7 @@ object MultiSelectionToolbarMenuProviders {
showAsActionFlag = MenuItem.SHOW_AS_ACTION_IF_ROOM
onClick {
playlists.actionSavePlaylists(context)
controller.unselectedAll()
true
}
}

0 comments on commit 43aefcb

Please sign in to comment.