Skip to content

Instantly share code, notes, and snippets.

@yevhenRoman
Created January 23, 2020 22:59
Show Gist options
  • Save yevhenRoman/bd0fcba8cc70ecee185bc434af89bca8 to your computer and use it in GitHub Desktop.
Save yevhenRoman/bd0fcba8cc70ecee185bc434af89bca8 to your computer and use it in GitHub Desktop.
currentNavController?.value?.addOnDestinationChangedListener { _, destination, _ ->
if (mainScreenIds.contains(destination.id)) {
bottomNavigation.visibility = View.VISIBLE
} else {
bottomNavigation.visibility = View.GONE
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment