From 00b5d0a12a05f04d78f35791681c725e8067bf61 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Sun, 5 Mar 2023 18:51:38 +0530 Subject: [PATCH] Inline NavBarOptionsDialog binding field. --- .../com/github/libretube/ui/dialogs/NavBarOptionsDialog.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/dialogs/NavBarOptionsDialog.kt b/app/src/main/java/com/github/libretube/ui/dialogs/NavBarOptionsDialog.kt index 181394b3a..ae0ad9a44 100644 --- a/app/src/main/java/com/github/libretube/ui/dialogs/NavBarOptionsDialog.kt +++ b/app/src/main/java/com/github/libretube/ui/dialogs/NavBarOptionsDialog.kt @@ -13,13 +13,9 @@ import com.github.libretube.ui.adapters.NavBarOptionsAdapter import com.google.android.material.dialog.MaterialAlertDialogBuilder class NavBarOptionsDialog : DialogFragment() { - private lateinit var binding: DialogNavbarOptionsBinding - override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { - binding = DialogNavbarOptionsBinding.inflate(layoutInflater) - + val binding = DialogNavbarOptionsBinding.inflate(layoutInflater) val options = NavBarHelper.getNavBarItems(requireContext()) - val adapter = NavBarOptionsAdapter( options.toMutableList(), NavBarHelper.getStartFragmentId(requireContext())