[Sweeper] fix: 展示水量低时数据判断错误导致一直显示水量低问题;

This commit is contained in:
aibingbing
2023-09-07 11:04:25 +08:00
parent 08148c7bd5
commit b4ef6ca2fd
2 changed files with 4 additions and 4 deletions

View File

@@ -101,9 +101,9 @@ class SweeperTrafficDataView : ConstraintLayout,
return
}
mCurrentTimeWaterMillis = current
d(SceneConstant.M_SWEEPER + TAG, "水位:${cleanSystemState.hasSecuCleanWaterTankLow()}")
d(SceneConstant.M_SWEEPER + TAG, "水位:${cleanSystemState.secuCleanWaterTankLow}")
UiThreadHandler.post {
if (cleanSystemState.hasSecuCleanWaterTankLow()) { //清水箱水位低不能清洗作业报警信号
if (cleanSystemState.secuCleanWaterTankLow) { //清水箱水位低不能清洗作业报警信号
ivBgWaterWarning?.visibility = VISIBLE
ivWater?.isSelected = true
} else {

View File

@@ -105,9 +105,9 @@ class SweeperTrafficDataView : ConstraintLayout,
return
}
mCurrentTimeWaterMillis = current
d(SceneConstant.M_SWEEPER + TAG, "水位:${cleanSystemState.hasSecuCleanWaterTankLow()}")
d(SceneConstant.M_SWEEPER + TAG, "水位:${cleanSystemState.secuCleanWaterTankLow}")
UiThreadHandler.post {
if (cleanSystemState.hasSecuCleanWaterTankLow()) { //清水箱水位低不能清洗作业报警信号
if (cleanSystemState.secuCleanWaterTankLow) { //清水箱水位低不能清洗作业报警信号
ivBgWaterWarning?.visibility = VISIBLE
ivWater?.isSelected = true
} else {