Merge pull request #4851 from Bnyro/master

fix: stick add to playlist, download and share to bottom
This commit is contained in:
Bnyro 2023-09-25 10:52:34 +02:00 committed by GitHub
commit 6b1df8cc7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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