[Update]支持乘客屏连接指定ip的司机屏,支持乘客屏请求司机屏车牌号
This commit is contained in:
@@ -565,8 +565,18 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
tbChangeAutoPilotStatus.setOnCheckedChangeListener { buttonView, isChecked ->
|
||||
CallerAutoPilotManager.setControlAutopilotCarAuto(isChecked)
|
||||
}
|
||||
|
||||
|
||||
when {
|
||||
AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode) -> {
|
||||
brakeThresholdDivider.visibility = View.GONE
|
||||
btnConnectServerIp.visibility = View.GONE
|
||||
etConnectServerIp.visibility = View.GONE
|
||||
}
|
||||
else -> {
|
||||
brakeThresholdDivider.visibility = View.VISIBLE
|
||||
btnConnectServerIp.visibility = View.VISIBLE
|
||||
etConnectServerIp.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -600,8 +610,10 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
|
||||
//设置连接司机屏IP
|
||||
btnConnectServerIp.setOnClickListener {
|
||||
//TODO 连接设置 输入框:etConnectServerIp
|
||||
|
||||
val ip = etConnectServerIp.text.toString()
|
||||
if (!ip.isNullOrEmpty()) {
|
||||
CallerAutoPilotManager.connectSpecifiedServer(ip)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user