[Update]支持乘客屏连接指定ip的司机屏,支持乘客屏请求司机屏车牌号

This commit is contained in:
chenfufeng
2022-04-02 19:43:16 +08:00
parent a5e5a2de8d
commit cba95d81b9
6 changed files with 160 additions and 54 deletions

View File

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