Last active
November 18, 2020 18:02
-
-
Save Shivamdhuria/5d1e4fce57df4566266a71819a930f73 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
private fun collectFlow() { | |
lifecycleScope.launch { | |
viewModel.isSubmitEnabled.collect { value -> | |
submit_button.isEnabled = value | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment