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" - } }