From f8994a08af28820846ea9d479e07f13fb5f9163c Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Sun, 5 Mar 2023 18:45:27 +0530 Subject: [PATCH] Inline DeleteAccountDialog binding field. --- .../com/github/libretube/ui/dialogs/DeleteAccountDialog.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/dialogs/DeleteAccountDialog.kt b/app/src/main/java/com/github/libretube/ui/dialogs/DeleteAccountDialog.kt index 7be649dea..0919b10bd 100644 --- a/app/src/main/java/com/github/libretube/ui/dialogs/DeleteAccountDialog.kt +++ b/app/src/main/java/com/github/libretube/ui/dialogs/DeleteAccountDialog.kt @@ -17,10 +17,8 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder class DeleteAccountDialog( private val onLogout: () -> Unit ) : DialogFragment() { - private lateinit var binding: DialogDeleteAccountBinding - override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { - binding = DialogDeleteAccountBinding.inflate(layoutInflater) + val binding = DialogDeleteAccountBinding.inflate(layoutInflater) binding.cancelButton.setOnClickListener { dialog?.dismiss()