Skip to content

Commit 968d256

Browse files
committed
TaskListFragment.kt: Add explicit parameter name for updateSort call
This removes the need to use the redundant String generic
1 parent 7eeceaf commit 968d256

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • features/tasks/src/main/kotlin/com/edricchan/studybuddy/features/tasks/list/ui/compat

features/tasks/src/main/kotlin/com/edricchan/studybuddy/features/tasks/list/ui/compat/TaskListFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,11 @@ class TaskListFragment : ViewBindingFragment<FragTodoBinding>(FragTodoBinding::i
278278
// TODO: Use a more appropriate UI, see tracking issue
279279
// https://github.com/EdricChan03/studybuddy-android/issues/639
280280
private fun showSortByOptions() {
281-
showSingleSelectBottomSheet<String>(
281+
showSingleSelectBottomSheet(
282282
headerTitleRes = R.string.task_sort_dialog_header_title,
283283
onConfirm = {
284284
viewLifecycleOwner.lifecycleScope.launch {
285-
viewModel.updateSort(it.id)
285+
viewModel.updateSort(value = it.id)
286286
}
287287
}
288288
) {

0 commit comments

Comments
 (0)