[3.2.0] bus/taxi司机端增加 后台未发布轨迹不可启动自驾开关
This commit is contained in:
@@ -1010,6 +1010,19 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
tbReportWarning.visibility = GONE
|
||||
}
|
||||
|
||||
|
||||
//是否开启无轨迹发送自驾命令
|
||||
tbStartAutopilotCommand.isChecked = FunctionBuildConfig.isPassStartAutopilotCommand
|
||||
tbStartAutopilotCommand.setOnCheckedChangeListener { _, isChecked ->
|
||||
FunctionBuildConfig.isPassStartAutopilotCommand = isChecked
|
||||
}
|
||||
|
||||
if (!AppIdentityModeUtils.isTaxiDriver(FunctionBuildConfig.appIdentityMode)
|
||||
&& !AppIdentityModeUtils.isBusDriver(FunctionBuildConfig.appIdentityMode)){
|
||||
tbStartAutopilotCommand.visibility = GONE
|
||||
}
|
||||
|
||||
|
||||
//切换环境
|
||||
tvCurEnv.text = "当前环境:${CallerDevaToolsManager.getEnvCityName()}${CallerDevaToolsManager.getEnvNetMode()}"
|
||||
btChangeEnv.onClick {
|
||||
|
||||
@@ -1346,6 +1346,19 @@
|
||||
android:textSize="@dimen/dp_24"
|
||||
app:layout_constraintTop_toBottomOf="@id/btnConnectServerIp" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/tbStartAutopilotCommand"
|
||||
style="@style/DebugSettingText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_80"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginRight="@dimen/dp_20"
|
||||
app:switchMinWidth="60dp"
|
||||
android:text="后台未发布轨迹不可启动自驾"
|
||||
android:textSize="@dimen/dp_28"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tbReportWarning" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<ToggleButton
|
||||
|
||||
Reference in New Issue
Block a user