File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/src/main/java/com/tencent/iot/explorer/link/mvp/model Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import com.tencent.iot.explorer.link.mvp.ParentModel
2626import com.tencent.iot.explorer.link.mvp.view.ControlPanelView
2727import java.util.*
2828import kotlin.collections.ArrayList
29+ import kotlin.collections.LinkedHashSet
2930
3031
3132/* *
@@ -55,7 +56,7 @@ class ControlPanelModel(view: ControlPanelView) : ParentModel<ControlPanelView>(
5556 private val deviceDataList = arrayListOf<DeviceDataEntity >()
5657
5758 // 设备产品信息及面板数据
58- val devicePropertyList = LinkedList <DevicePropertyEntity >()
59+ var devicePropertyList = LinkedList <DevicePropertyEntity >()
5960
6061 // 是否显示导航栏
6162 private var navBar: NavBar ? = null
@@ -325,6 +326,7 @@ class ControlPanelModel(view: ControlPanelView) : ParentModel<ControlPanelView>(
325326 devicePropertyList.add(devicePropertyEntity)
326327 }
327328 }
329+ devicePropertyList = LinkedList (LinkedHashSet (devicePropertyList))
328330 L .e(" devicePropertyList" , JsonManager .toJson(devicePropertyList) ? : " " )
329331 view?.showControlPanel(navBar, hasTimerCloud)
330332 }
You can’t perform that action at this time.
0 commit comments