[2110] 判空

This commit is contained in:
yangyakun
2022-09-22 11:17:25 +08:00
parent a54961732f
commit 9f2e3ebcaf

View File

@@ -111,7 +111,9 @@ class SwitchLineAdapter(
if(result.open){
result.open = false;
notifyItemChanged(index)
result.taskList.clear()
if(result.taskList!=null) {
result.taskList.clear()
}
if(index==currentPosition){// 点击当前已经打开的item 去关闭定时网络请求
mItemClickListener?.onItemClick(currentPosition,true)
return@setOnClickListener