| app/src/main/java/com/xw/yunwei/ui/task/accident/detail/AccidentDetailVM.kt | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
app/src/main/java/com/xw/yunwei/ui/task/accident/detail/AccidentDetailVM.kt
@@ -386,8 +386,8 @@ hour.postValue(if (list[0] < 10) "0${list[0]}" else "${list[0]}") minutes.postValue(if (list[1] < 10) "0${list[1]}" else "${list[1]}") second.postValue(if (list[2] < 10) "0${list[2]}" else "${list[2]}") // 剩余时间不足一小时显示红色警告 showRed.postValue(list[0] == 0L && list[1] == 0L) // 剩余时间不足3分钟显示红色警告 showRed.postValue(list[0] == 0L && list[1] == 2L) if (list.all { it == 0L }) { // 全0 此项移除 isTimeOut.postValue(true) }