[Sweeper] fix: 展示水量低时数据判断错误导致一直显示水量低问题;
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user