Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private val status = SingleLiveEvent<Status>()
fun getStatus(): LiveData<Status> {
return status
fun handleImage(intent: Intent?) {
intent?.data?.let {
avatar.value = it.toString()
} ?: run { status.value = Status.INVALID_URI }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment