Skip to content

Instantly share code, notes, and snippets.

@robertlevonyan
Created June 15, 2019 09:55
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 robertlevonyan/5d6d723f7ceacf7df7d24b1ed88e66ce to your computer and use it in GitHub Desktop.
Save robertlevonyan/5d6d723f7ceacf7df7d24b1ed88e66ce to your computer and use it in GitHub Desktop.
...
//check is there a signed in user and navigate to specific destination
if (usersRepositoty.userExists())
Navigation.findNavController(view).navigate(R.id.action_splashFragment_to_messageListFragment)
} else {
Navigation.findNavController(view).navigate(R.id.action_splashFragment_to_signInFragment)
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment