[dev_robotaxi-d-app-module_2132_221223_2.13.2_sop] obu的v2v和v2i事件开关添加

This commit is contained in:
lixiaopeng
2023-02-16 17:08:56 +08:00
parent 76f47c6da8
commit 0844eec8fd
4 changed files with 21 additions and 12 deletions

View File

@@ -103,24 +103,28 @@ class SOPSettingView @JvmOverloads constructor(
* 限速数据来源开关
*/
tbRoadLimitSpeedSop.setOnCheckedChangeListener { _, isChecked ->
//默认关闭
//默认开启
HmiBuildConfig.isShowObuLimitSpeedView = isChecked
}
/**
* obu V2V开关
*/
tbObuV2vView.isChecked = HmiBuildConfig.isShowObuV2vView
tbObuV2vView.setOnCheckedChangeListener { _, isChecked ->
//默认关闭
//默认开启
HmiBuildConfig.isShowObuV2vView = isChecked
// Log.e("liyz", "---2222-- v2v = ${HmiBuildConfig.isShowObuV2vView}")
}
/**
* obu V2i开关
*/
tbObuV2iView.isChecked = HmiBuildConfig.isShowObuV2iView
tbObuV2iView.setOnCheckedChangeListener { _, isChecked ->
//默认关闭
HmiBuildConfig.isShowObuV2iView = isChecked
// Log.d("liyz", "---2--- v2i = ${HmiBuildConfig.isShowObuV2iView}")
}
/**

View File

@@ -208,6 +208,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/dp_20"
android:visibility="gone"
android:background="@drawable/radio_button_normal_background_right"
android:textColor="#000"
android:textOff="获取路侧限速提醒"