[角标越界问题]
This commit is contained in:
yangyakun
2023-04-13 19:12:25 +08:00
parent 059271cb86
commit de89d77e49

View File

@@ -62,10 +62,16 @@ class SwitchLineAdapter(
line.taskList,
object : SwitchLineTaskAdapter.TaskItemClickListener {
override fun onItemClick(position: Int,isCheck:Boolean) {
if(isCheck) {
checkLineId = line.lineId
checkTaskId = line.taskList[position].id
}else{
try {
if (isCheck) {
checkLineId = line.lineId
checkTaskId = line.taskList[position].id
} else {
checkLineId = -1
checkTaskId = -1
}
}catch (e:Exception){
e.printStackTrace()
checkLineId=-1
checkTaskId=-1
}