close dialog

This commit is contained in:
nayeemdv 2023-03-25 09:49:12 +05:30
parent 7f65a401c7
commit 07f9a3b8e2

View File

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