18034727885
2026-06-03 fde7c515a9649d0ca68cc26917cf5e5e0fecd7a0
修复问题
1个文件已修改
4 ■■■■■ 已修改文件
app/src/main/java/com/xw/yunwei/ui/task/list/TaskListAdapter.kt 4 ●●●●● 补丁 | 查看 | 原始文档 | 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