Browse Source

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

周文健 5 months ago
parent
commit
c7275c2308
1 changed files with 1 additions and 1 deletions
  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 已经是「图内像素坐标」