| app/src/main/java/com/xw/yunwei/ui/task/list/TaskListAdapter.kt | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
app/src/main/java/com/xw/yunwei/ui/task/list/TaskListAdapter.kt
@@ -42,6 +42,7 @@ /** 当前纬度,用于计算与任务车辆的距离 */ var lat: Double = 0.0 /** 当前经度,用于计算与任务车辆的距离 */ var lng: Double = 0.0 @@ -89,6 +90,9 @@ val timeComplete = mutableListOf<Int>() countdownHolders.forEach { (code, binding) -> if (binding.root.windowToken == null || !binding.root.isAttachedToWindow) { return@forEach } // 获取当前绑定的数据 val position = binding.root.tag as? Int ?: return@forEach val item = getItemOrNull(position) ?: return@forEach