Skip to content

Commit

Permalink
Apply selected option just after clicking it for single-choice matchi…
Browse files Browse the repository at this point in the history
…ng problem and sing-choice table problem
  • Loading branch information
XanderZhu committed Jul 29, 2024
1 parent a940512 commit faac682
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ class TableColumnSelectionBottomSheetDialogFragment : BottomSheetDialogFragment(

private fun handleColumnSelectionClick(cell: TableChoiceItem) {
when (selectionHelper) {
is SingleChoiceSelectionHelper ->
is SingleChoiceSelectionHelper -> {
selectionHelper.select(columnsAdapter.items.indexOf(cell))
dismiss()
}

is MultipleChoiceSelectionHelper ->
selectionHelper.toggle(columnsAdapter.items.indexOf(cell))
Expand Down

0 comments on commit faac682

Please sign in to comment.