浏览代码

refactor(开关和设备异常)
- 开关界面修改

周文健 5 月之前
父节点
当前提交
c7275c2308
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/com/grkj/iscs/view/widget/CustomStationLayer.kt

+ 1 - 1
app/src/main/java/com/grkj/iscs/view/widget/CustomStationLayer.kt

@@ -102,7 +102,7 @@ class CustomStationLayer @JvmOverloads constructor(
         canvas.save()
         // 把 mapView 本身的缩放/平移/旋转一次性 concat 到 Canvas
         canvas.concat(currentMatrix)
-        pointList.forEachIndexed { index, point ->
+        pointList.forEach { point ->
             val switchStatus = ModBusController.getSwitchData()
                 .find { it.idx == point.pointSerialNumber?.toInt() }?.enabled
             // point.pos.x/y 已经是「图内像素坐标」