Skip to content

Instantly share code, notes, and snippets.

@danielwilson1702
Created March 2, 2022 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielwilson1702/eb5e6a7c3527373c71d7a264d514b0a8 to your computer and use it in GitHub Desktop.
Save danielwilson1702/eb5e6a7c3527373c71d7a264d514b0a8 to your computer and use it in GitHub Desktop.
primaryViewModel.selection.observe(viewLifecycleOwner) {
val directions =
DetailNavGraphDirections.openDetail(args.tabNumber, "Selection observed: $it")
detailNavHostFragment.navController.navigate(directions)
binding.root.open()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment