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 {