Created
February 4, 2018 22:20
-
-
Save mladenrakonjac/da0d40b48428142a273cf939fc4c67a2 to your computer and use it in GitHub Desktop.
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 MainActivity : DaggerAppCompatActivity(), RepositoryRecyclerViewAdapter.OnItemClickListener { | |
@Inject lateinit var viewModelFactory: ViewModelProvider.Factory | |
override fun onCreate(savedInstanceState: Bundle?) { | |
... | |
val viewModel = ViewModelProviders.of(this, viewModelFactory) | |
.get(MainViewModel::class.java) | |
... | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment