| | |
| | | if (gatewayBean == null) { |
| | | continue; |
| | | } |
| | | if (gatewayBean.getSpk().equals(HdlDeviceLogic.getInstance().INVERTER_DEVICE_SPK) |
| | | || gatewayBean.getSpk().equals(HdlDeviceLogic.getInstance().OFF_INVERTER_OG_SPK)) { |
| | | if (gatewayBean.isActivate()) { |
| | | if (gatewayBean.isActivate()) { |
| | | if (gatewayBean.getSpk().equals(HdlDeviceLogic.getInstance().INVERTER_DEVICE_SPK) |
| | | || gatewayBean.getSpk().equals(HdlDeviceLogic.getInstance().OFF_INVERTER_OG_SPK)) { |
| | | inverterList.add(gatewayBean); |
| | | } else { |
| | | inverterUnactivatedList.add(gatewayBean); |
| | | lcList.add(gatewayBean); |
| | | } |
| | | } else { |
| | | lcList.add(gatewayBean); |
| | | inverterUnactivatedList.add(gatewayBean); |
| | | } |
| | | } |
| | | newList.addAll(inverterUnactivatedList); |