Last active
December 12, 2020 13:50
-
-
Save ch8n/06ffd5dfaac4f217da8cabaabeb1a403 to your computer and use it in GitHub Desktop.
for medium article
This file contains hidden or 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
class MovieDetailActivity : AppCompatActivity() { | |
@Inject | |
internal laterinit var viewmodel: MovieViewModel | |
override fun onCreate(savedInstanceState: Bundle?) { | |
... | |
// viewmodel = Injector.detailViewModel(this) remove this line | |
...// viewModle is ready to be used... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment