mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Inline NavBarOptionsDialog binding field.
This commit is contained in:
parent
38a5dc2933
commit
00b5d0a12a
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user