Skip to content

Commit

Permalink
sample: fix #389 快速切换CheckBox已选项错误
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Sep 4, 2023
1 parent 9a29238 commit 361a1c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class CheckModeFragment : EngineFragment<FragmentCheckModeBinding>(R.layout.frag
}

// 点击列表触发选中
onClick(R.id.cb, R.id.item) {
onFastClick(R.id.cb, R.id.item) {
// 如果当前未处于选择模式下 点击无效
if (!toggleMode && it == R.id.item) {
return@onClick
return@onFastClick
}
var checked = getModel<CheckModel>().checked
if (it == R.id.item) checked = !checked
Expand Down

0 comments on commit 361a1c8

Please sign in to comment.