From f0fd37e69040e94e1cb6041710425cc5dd5604b4 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 2 Nov 2023 13:45:25 +0100 Subject: [PATCH] fix: new created playlist not immediately visible --- .../com/github/libretube/ui/dialogs/AddToPlaylistDialog.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/dialogs/AddToPlaylistDialog.kt b/app/src/main/java/com/github/libretube/ui/dialogs/AddToPlaylistDialog.kt index 5b5a21284..94a2647d4 100644 --- a/app/src/main/java/com/github/libretube/ui/dialogs/AddToPlaylistDialog.kt +++ b/app/src/main/java/com/github/libretube/ui/dialogs/AddToPlaylistDialog.kt @@ -40,7 +40,7 @@ class AddToPlaylistDialog : DialogFragment() { val binding = DialogAddToPlaylistBinding.inflate(layoutInflater) childFragmentManager.setFragmentResultListener( - ADD_TO_PLAYLIST_DIALOG_REQUEST_KEY, + CreatePlaylistDialog.CREATE_PLAYLIST_DIALOG_REQUEST_KEY, this ) { _, resultBundle -> val addedToPlaylist = resultBundle.getBoolean(IntentData.playlistTask) @@ -128,8 +128,4 @@ class AddToPlaylistDialog : DialogFragment() { appContext.toastFromMainDispatcher(R.string.fail) } } - - companion object { - const val ADD_TO_PLAYLIST_DIALOG_REQUEST_KEY = "add_to_playlist_dialog_request_key" - } }