diff --git a/app/src/main/java/com/github/libretube/ui/dialogs/CreatePlaylistDialog.kt b/app/src/main/java/com/github/libretube/ui/dialogs/CreatePlaylistDialog.kt index d051eba3c..06a9ace5f 100644 --- a/app/src/main/java/com/github/libretube/ui/dialogs/CreatePlaylistDialog.kt +++ b/app/src/main/java/com/github/libretube/ui/dialogs/CreatePlaylistDialog.kt @@ -29,6 +29,7 @@ class CreatePlaylistDialog( playlistUrl?.queryParameter("list")?.let { lifecycleScope.launch { + dialog?.hide() val playlistId = withContext(Dispatchers.IO) { PlaylistsHelper.clonePlaylist(requireContext(), it) } @@ -38,7 +39,6 @@ class CreatePlaylistDialog( appContext?.toastFromMainThread( if (playlistId != null) R.string.playlistCloned else R.string.server_error ) - dismiss() } } ?: run { Toast.makeText(context, R.string.invalid_url, Toast.LENGTH_SHORT).show()