Skip to content

Instantly share code, notes, and snippets.

@tfcporciuncula
Created November 29, 2018 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfcporciuncula/0218fc7b9c52d67d50709b68a8507b2f to your computer and use it in GitHub Desktop.
Save tfcporciuncula/0218fc7b9c52d67d50709b68a8507b2f to your computer and use it in GitHub Desktop.
BestPostActivity
class BestPostActivity : AppCompatActivity() {
private val viewModel by lazy {
ViewModelProviders
.of(this, injector.bestPostViewModelFactory())
.get(BestPostViewModel::class.java)
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment