mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Merge pull request #4851 from Bnyro/master
fix: stick add to playlist, download and share to bottom
This commit is contained in:
commit
6b1df8cc7d
@ -44,9 +44,6 @@ class VideoOptionsBottomSheet : BaseBottomSheet() {
|
||||
// List that stores the different menu options. In the future could be add more options here.
|
||||
val optionsList = mutableListOf(
|
||||
getString(R.string.playOnBackground),
|
||||
getString(R.string.addToPlaylist),
|
||||
getString(R.string.download),
|
||||
getString(R.string.share)
|
||||
)
|
||||
|
||||
// Check whether the player is running and add queue options
|
||||
@ -76,6 +73,12 @@ class VideoOptionsBottomSheet : BaseBottomSheet() {
|
||||
}
|
||||
}
|
||||
|
||||
optionsList += listOf(
|
||||
getString(R.string.addToPlaylist),
|
||||
getString(R.string.download),
|
||||
getString(R.string.share)
|
||||
)
|
||||
|
||||
setSimpleItems(optionsList) { which ->
|
||||
when (optionsList[which]) {
|
||||
// Start the background mode
|
||||
|
Loading…
Reference in New Issue
Block a user