Guest User

Untitled

a guest
May 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. val viewModel : TodoListViewModel = ViewModelProviders.of(this).get(TodoListViewModel::class.java)
  2. viewModel.getAllTasksFromViewModel()?.observe(
  3. this ,
  4. Observer {
  5. if (it != null) {
  6. mTodoTaskAdapters = TodoTaskAdapters(this , it)
  7. mTaskRecyclerView.layoutManager = LinearLayoutManager(
  8. this.applicationContext ,
  9. LinearLayout.VERTICAL , false)
  10. mTaskRecyclerView.adapter = mTodoTaskAdapters
  11. }
  12. }
  13. )
Add Comment
Please, Sign In to add comment