mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +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
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
|
||||||
class NavBarOptionsDialog : DialogFragment() {
|
class NavBarOptionsDialog : DialogFragment() {
|
||||||
private lateinit var binding: DialogNavbarOptionsBinding
|
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
binding = DialogNavbarOptionsBinding.inflate(layoutInflater)
|
val binding = DialogNavbarOptionsBinding.inflate(layoutInflater)
|
||||||
|
|
||||||
val options = NavBarHelper.getNavBarItems(requireContext())
|
val options = NavBarHelper.getNavBarItems(requireContext())
|
||||||
|
|
||||||
val adapter = NavBarOptionsAdapter(
|
val adapter = NavBarOptionsAdapter(
|
||||||
options.toMutableList(),
|
options.toMutableList(),
|
||||||
NavBarHelper.getStartFragmentId(requireContext())
|
NavBarHelper.getStartFragmentId(requireContext())
|
||||||
|
Loading…
Reference in New Issue
Block a user