[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

@@ -764,7 +764,9 @@ internal class SOPSettingView @JvmOverloads constructor(
it.layoutParams = params
it.setOnCheckedChangeListener { _, isChecked ->
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(isChecked)
CallerTelematicManager.sendMsgToAllClients(TelematicConstant.WEATHER_SWITCH_STATUS, (if (isChecked) "1" else "0").toByteArray())
}
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(true)
}
}