Last active
February 5, 2018 14:45
-
-
Save nanlabsweb/3eb476d97ec7358b4ef67b28bf723eac to your computer and use it in GitHub Desktop.
Activity delegates decision to ViewModel. ViewModel creates Intents.
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
// ... | |
override fun onCreate(savedInstanceState: Bundle?) { | |
// ... | |
createContentButton.setOnClickListener({ | |
startActivity(authViewModel.getActionIntent()) | |
}) | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment