Skip to content

Instantly share code, notes, and snippets.

@TorkelV
Created Aug 11, 2021
Embed
What would you like to do?
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