fix: 巡检时段去掉"巡检"二字防换行

🔍巡检09:00~18:00 → 🔍09:00~18:00

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
dongliang
2026-05-06 17:42:46 +09:30
parent 0941138a9f
commit d3bbf738f6

View File

@@ -268,7 +268,7 @@ class TaskListFragment : BaseFragment<FragmentTaskListBinding>() {
// 巡检任务显示巡检时段 // 巡检任务显示巡检时段
if (detail.taskType == 5 && !detail.executeTimeStart.isNullOrEmpty()) { if (detail.taskType == 5 && !detail.executeTimeStart.isNullOrEmpty()) {
val end = detail.executeTimeEnd ?: "" val end = detail.executeTimeEnd ?: ""
timeLines.add("🔍巡检${detail.executeTimeStart}~${end}") timeLines.add("🔍${detail.executeTimeStart}~${end}")
} }
if (timeLines.isNotEmpty()) { if (timeLines.isNotEmpty()) {
binding.tvTimeInfo.text = timeLines.joinToString("\n") binding.tvTimeInfo.text = timeLines.joinToString("\n")
@@ -337,7 +337,7 @@ class TaskListFragment : BaseFragment<FragmentTaskListBinding>() {
private fun showInspectTime(detail: TaskDetail) { private fun showInspectTime(detail: TaskDetail) {
if (detail.taskType == 5 && !detail.executeTimeStart.isNullOrEmpty()) { if (detail.taskType == 5 && !detail.executeTimeStart.isNullOrEmpty()) {
val end = detail.executeTimeEnd ?: "" val end = detail.executeTimeEnd ?: ""
binding.tvTimeInfo.text = "🔍巡检${detail.executeTimeStart}~${end}" binding.tvTimeInfo.text = "🔍${detail.executeTimeStart}~${end}"
binding.tvTimeInfo.visibility = View.VISIBLE binding.tvTimeInfo.visibility = View.VISIBLE
} }
} }