From 07f9a3b8e21c79815df3408bc67fd437325d1c18 Mon Sep 17 00:00:00 2001 From: nayeemdv Date: Sat, 25 Mar 2023 09:49:12 +0530 Subject: [PATCH] close dialog --- .../com/github/libretube/ui/dialogs/RenamePlaylistDialog.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/dialogs/RenamePlaylistDialog.kt b/app/src/main/java/com/github/libretube/ui/dialogs/RenamePlaylistDialog.kt index a032537eb..3bcd1b1c3 100644 --- a/app/src/main/java/com/github/libretube/ui/dialogs/RenamePlaylistDialog.kt +++ b/app/src/main/java/com/github/libretube/ui/dialogs/RenamePlaylistDialog.kt @@ -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 {