Skip to content

Instantly share code, notes, and snippets.

View NavigationLoginFragment.kt
class LoginFragment : BaseLifeCycleFragment() {
override val viewModel by viewModel<LoginViewModel>()
val mainNavController: NavController? by lazy { activity?.findNavController(R.id.main_nav_host_fragment) }
val authentionNavController: NavController? by lazy { view?.findNavController() }
...