mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-07 18: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 {
|
binding.createNewPlaylist.setOnClickListener {
|
||||||
val appContext = context?.applicationContext
|
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()
|
val listName = binding.playlistName.text?.toString()
|
||||||
if (!listName.isNullOrEmpty()) {
|
if (!listName.isNullOrEmpty()) {
|
||||||
|
// avoid creating the same playlist multiple times by spamming the button
|
||||||
|
binding.createNewPlaylist.setOnClickListener(null)
|
||||||
lifecycleScope.launch {
|
lifecycleScope.launch {
|
||||||
requireDialog().hide()
|
requireDialog().hide()
|
||||||
val playlistId = withContext(Dispatchers.IO) {
|
val playlistId = withContext(Dispatchers.IO) {
|
||||||
|
Loading…
Reference in New Issue
Block a user