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 3f3e16905f..57380160cf 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 @@ -9,6 +9,7 @@ import android.graphics.Color import android.os.Build import android.text.Html import android.util.AttributeSet +import android.util.Log import android.view.LayoutInflater import android.view.View import androidx.annotation.RequiresApi @@ -540,15 +541,15 @@ internal class DebugSettingView @JvmOverloads constructor( /** * 修改自车按钮(出租车、小巴车) */ -// tbChangeCurrentCarIcon.setOnCheckedChangeListener { _, isChecked -> -// if (!isChecked) { -// // 替换为出租车图标 -// CallerMapUIServiceManager.getMapUIController()?.changeCurrentIcon(R.raw.chuzuche) -// } else { -// // 替换为小巴车图标 -// CallerMapUIServiceManager.getMapUIController()?.changeCurrentIcon(R.raw.xiaobache) -// } -// } + tbChangeCurrentCarIcon.setOnCheckedChangeListener { _, isChecked -> + if (!isChecked) { + // 替换为出租车图标 + CallerMapUIServiceManager.getMapUIController()?.changeCurrentIcon(R.raw.chuzuche) + } else { + // 替换为小巴车图标 + CallerMapUIServiceManager.getMapUIController()?.changeCurrentIcon(R.raw.xiaobache) + } + } /** @@ -814,9 +815,9 @@ internal class DebugSettingView @JvmOverloads constructor( } //初始化切换自车按钮文本(Bus版本默认显示:切换自车为出租车) - if (AppIdentityModeUtils.isBus(FunctionBuildConfig.appIdentityMode)) { - tbChangeCurrentCarIcon.isChecked = true - } +// if (AppIdentityModeUtils.isBus(FunctionBuildConfig.appIdentityMode)) { +// tbChangeCurrentCarIcon.isChecked = true +// } //初始化ADAS日志开关状态 tbADASLog.isChecked = CallerAutoPilotControlManager.isEnableLog() 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 a31b6fbb82..27f6125ab9 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 @@ -1482,7 +1482,6 @@ app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toLeftOf="@id/btnDrawTrolley" app:layout_constraintTop_toBottomOf="@id/reset_changesight" - android:visibility="invisible" />