|
|
@@ -94,7 +94,7 @@ class DeviceStatusFragment : BaseMvpFragment<IDeviceStatusView, DeviceStatusPres
|
|
|
}
|
|
|
|
|
|
override fun isForViewType(item: DockStatusBO?, position: Int): Boolean {
|
|
|
- return item?.dockList?.any { it.type == DOCK_TYPE_KEY } == true
|
|
|
+ return item?.dockList?.all { it.type == DOCK_TYPE_KEY } == true
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -114,7 +114,7 @@ class DeviceStatusFragment : BaseMvpFragment<IDeviceStatusView, DeviceStatusPres
|
|
|
}
|
|
|
|
|
|
override fun isForViewType(item: DockStatusBO?, position: Int): Boolean {
|
|
|
- return item?.dockList?.any { it.type == DOCK_TYPE_LOCK } == true
|
|
|
+ return item?.dockList?.all { it.type == DOCK_TYPE_LOCK } == true
|
|
|
}
|
|
|
}
|
|
|
|