fix: hide add to queue option for playlists when queue empty

This commit is contained in:
Bnyro 2023-08-12 10:44:10 +02:00
parent a354d31f74
commit e528486601

View File

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