mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: hide add to queue option for playlists when queue empty
This commit is contained in:
parent
a354d31f74
commit
e528486601
@ -32,10 +32,11 @@ class PlaylistOptionsBottomSheet(
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
// options for the dialog
|
||||
val optionsList = mutableListOf(
|
||||
getString(R.string.playOnBackground),
|
||||
getString(R.string.add_to_queue)
|
||||
getString(R.string.playOnBackground)
|
||||
)
|
||||
|
||||
if (PlayingQueue.isNotEmpty()) optionsList.add(getString(R.string.add_to_queue))
|
||||
|
||||
val isBookmarked = runBlocking(Dispatchers.IO) {
|
||||
DatabaseHolder.Database.playlistBookmarkDao().includes(playlistId)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user