Created
May 23, 2018 06:38
-
-
Save vprabhu/79adaf72e3d3111e4c53872665a9cd28 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
val viewModel : TodoListViewModel = ViewModelProviders.of(this).get(TodoListViewModel::class.java) | |
viewModel.getAllTasksFromViewModel()?.observe( | |
this , | |
Observer { | |
if (it != null) { | |
mTodoTaskAdapters = TodoTaskAdapters(this , it) | |
mTaskRecyclerView.layoutManager = LinearLayoutManager( | |
this.applicationContext , | |
LinearLayout.VERTICAL , false) | |
mTaskRecyclerView.adapter = mTodoTaskAdapters | |
} | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment