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 843b61846f..715abf4fd8 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 @@ -2326,16 +2326,16 @@ internal class DebugSettingView @JvmOverloads constructor( val msg = Html.fromHtml("工控机连接状态:${color}${AppConfigInfo.connectStatusDescribe}") ThreadUtils.runOnUiThread { tvAutopilotConnectStatus.text = msg - if (status == AdasConstants.IpcConnectionStatus.CONNECTED || - status == AdasConstants.IpcConnectionStatus.CONNECTING || - status == AdasConstants.IpcConnectionStatus.RECONNECTING_TIMER || - status == AdasConstants.IpcConnectionStatus.RECONNECTING_NETWORK || - status == AdasConstants.IpcConnectionStatus.SEARCH_ADDRESS - ) { - tvIpcConnectStatus.minLines = 1 - } else { - tvIpcConnectStatus.minLines = 4 - } +// if (status == AdasConstants.IpcConnectionStatus.CONNECTED || +// status == AdasConstants.IpcConnectionStatus.CONNECTING || +// status == AdasConstants.IpcConnectionStatus.RECONNECTING_TIMER || +// status == AdasConstants.IpcConnectionStatus.RECONNECTING_NETWORK || +// status == AdasConstants.IpcConnectionStatus.SEARCH_ADDRESS +// ) { +// tvIpcConnectStatus.minLines = 1 +// } else { +// tvIpcConnectStatus.minLines = 4 +// } tvIpcConnectStatus.text = msg //如果是乘客端,则不显示工控机连接状态 if (AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)) { 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 093800dad4..06b854a1a6 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 @@ -188,7 +188,10 @@ android:id="@+id/tvIpcConnectStatus" style="@style/DebugSettingText" android:layout_width="match_parent" - android:layout_height="wrap_content" /> + android:layout_height="wrap_content" + android:ellipsize="end" + android:maxLines="2" + android:minLines="2" /> + android:layout_height="wrap_content" + android:ellipsize="end" + android:maxLines="2" + android:minLines="2" />