Last active
March 15, 2018 15:05
-
-
Save skydoves/adc82a9f14d516b8e04b9a24761ef641 to your computer and use it in GitHub Desktop.
InjectionExampleMainActivity
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
@Inject lateinit var viewModelFactory: AppViewModelFactory | |
private val viewModel by lazy { ViewModelProviders.of(this, viewModelFactory).get(MainActivityViewModel::class.java) } | |
override fun onCreate(savedInstanceState: Bundle?) { | |
AndroidInjection.inject(this) | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment