Skip to content

Instantly share code, notes, and snippets.

@TorkelV
Created August 11, 2021 10:55
Show Gist options
  • Save TorkelV/ffd06f418882cf07525950a93c0b6539 to your computer and use it in GitHub Desktop.
Save TorkelV/ffd06f418882cf07525950a93c0b6539 to your computer and use it in GitHub Desktop.
account1.setOnClickListener {
val controller = findNavController()
if(controller.currentDestination == R.id.account_fragment){
controller.navigate(HomeFragmentDirections.toAccount("1"))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment