[7.0.0] 优化调试窗 域控连接状态显示区域大小

This commit is contained in:
xinfengkun
2025-04-01 11:51:17 +08:00
parent 605408b9fc
commit 0ec519710d
2 changed files with 18 additions and 12 deletions

View File

@@ -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)) {

View File

@@ -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" />
<View
android:layout_width="match_parent"
@@ -599,7 +602,10 @@
android:id="@+id/tvAutopilotConnectStatus"
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" />
<View
android:layout_width="match_parent"