Skip to content

Commit

Permalink
Use view binding in TasksFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAlcerreca committed Dec 1, 2021
1 parent d9574e4 commit 838e15b
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,8 @@ class TasksFragment : Fragment() {
}

private fun setupFab() {
activity?.findViewById<FloatingActionButton>(R.id.add_task_fab)?.let {
it.setOnClickListener {
navigateToAddNewTask()
}
viewDataBinding.addTaskFab.setOnClickListener {
navigateToAddNewTask()
}
}

Expand Down

0 comments on commit 838e15b

Please sign in to comment.