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 d78b3de47..1bd9f8d36 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 @@ -18,10 +18,8 @@ import okhttp3.HttpUrl.Companion.toHttpUrlOrNull class CreatePlaylistDialog( private val onSuccess: () -> Unit = {} ) : DialogFragment() { - private lateinit var binding: DialogCreatePlaylistBinding - override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { - binding = DialogCreatePlaylistBinding.inflate(layoutInflater) + val binding = DialogCreatePlaylistBinding.inflate(layoutInflater) binding.clonePlaylist.setOnClickListener { val playlistUrl = binding.playlistUrl.text.toString().toHttpUrlOrNull()