[6.3.0][Feat]司机屏天气效果开关状态同步给乘客屏

This commit is contained in:
chenfufeng
2024-03-27 16:39:38 +08:00
parent e8e715ebe5
commit e27b271e60
3 changed files with 10 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager.setIgnoreConditionDraw
import com.mogo.eagle.core.function.call.cloud.CallerCloudListenerManager
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager
import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager
import com.mogo.eagle.core.function.call.telematic.CallerTelematicListenerManager
import com.mogo.eagle.core.function.call.v2x.CallerTrafficLightListenerManager
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
@@ -216,6 +217,12 @@ class TeleMsgHandler : IMsgHandler {
}
}
TelematicConstant.WEATHER_SWITCH_STATUS -> {
ThreadUtils.runOnUiThread {
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(String(it.body) == "1")
}
}
TelematicConstant.OBU_GREENWAVE_WARNING -> {
when (String(it.body)) {
"0" -> {