Skip to content

Commit eccf78e

Browse files
committed
FIX UI tests
1 parent 7cb814a commit eccf78e

File tree

1 file changed

+2
-1
lines changed
  • app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks

1 file changed

+2
-1
lines changed

app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksFragment.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ class TasksFragment : Fragment() {
132132
}
133133
}
134134

135+
// TODO: Move this to databinding
135136
private fun setupFab() {
136-
activity?.findViewById<FloatingActionButton>(R.id.add_task_fab)?.let {
137+
requireView().findViewById<FloatingActionButton>(R.id.add_task_fab)?.let {
137138
it.setOnClickListener {
138139
navigateToAddNewTask()
139140
}

0 commit comments

Comments
 (0)