Merge pull request #3377 from nayeemdv/libissue2

close the dialog if name matched
This commit is contained in:
Bnyro 2023-03-25 08:22:10 +01:00 committed by GitHub
commit 5e488fb692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,10 @@ class RenamePlaylistDialog(
.show() .show()
return@setOnClickListener return@setOnClickListener
} }
if (newPlaylistName == currentPlaylistName) return@setOnClickListener if (newPlaylistName == currentPlaylistName) {
dismiss()
return@setOnClickListener
}
val appContext = requireContext().applicationContext val appContext = requireContext().applicationContext
lifecycleScope.launch { lifecycleScope.launch {