mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Merge pull request #3611 from nayeemdv/newPLaylistIssue
creating new playlist
This commit is contained in:
commit
370ab6e1d4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user