Created
February 4, 2018 20:44
-
-
Save mladenrakonjac/6d2430bfe42a64f05af5a8ffcd8c8316 to your computer and use it in GitHub Desktop.
This file contains 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 mainViewModelFactory: MainViewModelFactory | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
val viewModel = ViewModelProviders.of(this, mainViewModelFactory) | |
.get(MainViewModel::class.java) | |
... | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment