From 1e1b0707f95ffc357cb90088364795271b3cdc47 Mon Sep 17 00:00:00 2001
From: xuxinchao <13522809046@163.com>
Date: Wed, 13 Apr 2022 11:14:34 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E7=AA=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
1、调整控制中心列表元素位置
2、修复Bus包切换自车按钮显示错误问题
3、调整连接工控机按钮文字
---
.../hmi/ui/setting/DebugSettingView.kt | 8 +-
.../main/res/layout/view_debug_setting.xml | 272 +++++++++---------
2 files changed, 143 insertions(+), 137 deletions(-)
diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt
index 7120d95378..ff38bc4435 100644
--- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt
+++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt
@@ -449,7 +449,7 @@ class DebugSettingView @JvmOverloads constructor(
/**
* 修改自车按钮(出租车、小巴车)
*/
- tbChangeCurrentCarIcon.setOnCheckedChangeListener { buttonView, isChecked ->
+ tbChangeCurrentCarIcon.setOnCheckedChangeListener { _, isChecked ->
if (!isChecked) {
// 替换为出租车图标
CallerHDMapManager.changeCurrentIcon(R.raw.chuzuche)
@@ -589,6 +589,12 @@ class DebugSettingView @JvmOverloads constructor(
etConnectServerIp.visibility = View.VISIBLE
}
}
+
+ //初始化切换自车按钮文本(Bus版本默认显示:切换自车为出租车)
+ if(AppIdentityModeUtils.isBus(FunctionBuildConfig.appIdentityMode)){
+ tbChangeCurrentCarIcon.isChecked = true
+ }
+
}
/**
diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml
index 1290bc2ec1..a1ff2860b7 100644
--- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml
+++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml
@@ -450,116 +450,6 @@
android:orientation="vertical"
android:visibility="gone">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -802,6 +692,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ android:textOff="鹰眼本地配置"
+ android:textOn="鹰眼本地配置" />
-
-
+
+
+
+
+
+
+
+
-
-
-
+
-
+
+
+
+