Created
June 15, 2019 09:55
-
-
Save robertlevonyan/5d6d723f7ceacf7df7d24b1ed88e66ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
//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