Merge pull request #3611 from nayeemdv/newPLaylistIssue

creating new playlist
This commit is contained in:
Bnyro 2023-04-23 08:20:08 +02:00 committed by GitHub
commit 370ab6e1d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,10 +52,10 @@ class CreatePlaylistDialog(
binding.createNewPlaylist.setOnClickListener {
val appContext = context?.applicationContext
// avoid creating the same playlist multiple times by spamming the button
binding.createNewPlaylist.setOnClickListener(null)
val listName = binding.playlistName.text?.toString()
if (!listName.isNullOrEmpty()) {
// avoid creating the same playlist multiple times by spamming the button
binding.createNewPlaylist.setOnClickListener(null)
lifecycleScope.launch {
requireDialog().hide()
val playlistId = withContext(Dispatchers.IO) {