Skip to content

Instantly share code, notes, and snippets.

@JoseAlcerreca
Last active April 28, 2018 10:03
Show Gist options
  • Save JoseAlcerreca/658f1e41c80571519d90d6b51252c398 to your computer and use it in GitHub Desktop.
Save JoseAlcerreca/658f1e41c80571519d90d6b51252c398 to your computer and use it in GitHub Desktop.
myViewModel.navigateToDetails.observe(this, Observer {
it.getContentIfNotHandled()?.let { // Only proceed if the event has never been handled
startActivity(DetailsActivity...)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment