Last active
October 23, 2017 20:51
-
-
Save Shahgupta4sq/b3c8bb9299322f5b889f73fe954e41a2 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
viewModel.getState().observe(this, Observer { handleState(it) }) | |
private fun handleState(state: EditProfileState?) { | |
if (state?.isCityDialogShown == true) { | |
showCitySelectionDialog() | |
return | |
} | |
if (state?.isGenderDialogShown == true) { | |
showGenderSelectionDialog() | |
return | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment