From 4cfcde6e0314df57f874fd0cc3451750a884a223 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 25 Sep 2023 10:53:09 +0200 Subject: [PATCH] fix: stick add to playlist, download and share bottom sheet options at bottom --- .../libretube/ui/sheets/VideoOptionsBottomSheet.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/sheets/VideoOptionsBottomSheet.kt b/app/src/main/java/com/github/libretube/ui/sheets/VideoOptionsBottomSheet.kt index b9144217d..6b63ca478 100644 --- a/app/src/main/java/com/github/libretube/ui/sheets/VideoOptionsBottomSheet.kt +++ b/app/src/main/java/com/github/libretube/ui/sheets/VideoOptionsBottomSheet.kt @@ -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