[8.4.0]临时代码,注释吐司提示
This commit is contained in:
@@ -180,7 +180,7 @@ class MoGoAutopilotControlProvider :
|
||||
|
||||
override fun onStopServer() {
|
||||
// ToastUtils.showLong("司机端服务停止!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_driver_service_stop)
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_driver_service_stop)
|
||||
timer?.cancel()
|
||||
timer = null
|
||||
// invokeNettyConnResult("司机端服务停止!")
|
||||
@@ -266,7 +266,7 @@ class MoGoAutopilotControlProvider :
|
||||
}.onFailure { throwable ->
|
||||
if (DebugConfig.isDebug()) {
|
||||
// ToastUtils.showLong("AutoPilot出现异常,请立即处理!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_autopilot_exception)
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_autopilot_exception)
|
||||
}
|
||||
throwable.printStackTrace()
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class MoGoAdasMsgConnectStatusListenerImpl :
|
||||
|
||||
private fun connectToast(reason: Int) {
|
||||
if (CallerIpcConnectStateToastManager.isToast) {
|
||||
ToastUtils.showShort(reason)
|
||||
// ToastUtils.showShort(reason)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -520,7 +520,7 @@ class TeleMsgHandler : IMsgHandler {
|
||||
}
|
||||
TelematicConstant.PASSENGER_APP_REBOOT -> {
|
||||
// ToastUtils.showLong("乘客屏已收到重启命令")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_received_restart_command)
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_received_restart_command)
|
||||
}
|
||||
else -> {
|
||||
}
|
||||
@@ -553,7 +553,7 @@ class TeleMsgHandler : IMsgHandler {
|
||||
}
|
||||
// AdasManager.getInstance().startDispatchHandler()
|
||||
// ToastUtils.showShort("连接司机屏成功!")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_datacenter_passenger_link_driver_success)
|
||||
// ToastUtils.showShort(R.string.module_mogo_core_function_datacenter_passenger_link_driver_success)
|
||||
invokeReqStatusLog(mapOf("dpConnectStatus" to true))
|
||||
val byteArray = byteArrayOf(0)
|
||||
NSDNettyManager.getInstance().sendMogoProtocolMsgToServer(
|
||||
@@ -571,7 +571,7 @@ class TeleMsgHandler : IMsgHandler {
|
||||
AppConfigInfo.plateNumber = ""
|
||||
AppConfigInfo.iPCMacAddress = ""
|
||||
// ToastUtils.showLong("断开和司机屏的连接!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_disconnect_driver)
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_disconnect_driver)
|
||||
invokeReqStatusLog(mapOf("dpConnectStatus" to false))
|
||||
AdasManager.getInstance().stopDispatchHandler()
|
||||
}
|
||||
@@ -580,7 +580,7 @@ class TeleMsgHandler : IMsgHandler {
|
||||
ConnectState.STATUS_CONNECT_ERROR -> {
|
||||
AppConfigInfo.plateNumber = ""
|
||||
// ToastUtils.showLong("和司机端连接异常!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_connect_driver_error)
|
||||
// ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_connect_driver_error)
|
||||
invokeReqStatusLog(mapOf("dpConnectErrorMsg" to "$content"))
|
||||
AdasManager.getInstance().stopDispatchHandler()
|
||||
}
|
||||
|
||||
@@ -121,13 +121,13 @@ class SelectAutopilotLineDialog(context: Context) : Dialog(context), LifecycleOw
|
||||
}
|
||||
|
||||
override fun onError(msg: String) {
|
||||
ToastUtils.showLong("获取 Bus 站点列表异常,异常原因:${msg}")
|
||||
// ToastUtils.showLong("获取 Bus 站点列表异常,异常原因:${msg}")
|
||||
tvLoading.show("获取 Bus 站点列表异常")
|
||||
}
|
||||
}
|
||||
)
|
||||
} ?: let {
|
||||
ToastUtils.showLong("获取 Bus 站点列表异常,获取当前未知失败,请开启定位权限")
|
||||
// ToastUtils.showLong("获取 Bus 站点列表异常,获取当前未知失败,请开启定位权限")
|
||||
tvLoading.show("获取 Bus 站点列表异常,请开启定位权限")
|
||||
}
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ class FmdAct : BaseActivity() {
|
||||
|
||||
fun getRosHostArguments(): ArrayList<RosHostArgument>? {
|
||||
return if (fmdBound == null) {
|
||||
ToastUtils.showLong("服务绑定失败,请退出页面重试")
|
||||
// ToastUtils.showLong("服务绑定失败,请退出页面重试")
|
||||
null
|
||||
} else {
|
||||
fmdBound!!.rosHostArguments
|
||||
@@ -270,7 +270,7 @@ class FmdAct : BaseActivity() {
|
||||
return bridge
|
||||
}
|
||||
}
|
||||
ToastUtils.showLong("终端服务未绑定或绑定失败")
|
||||
// ToastUtils.showLong("终端服务未绑定或绑定失败")
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ class FmdAct : BaseActivity() {
|
||||
fmdBound!!.openConnection(hostBean)
|
||||
return
|
||||
}
|
||||
ToastUtils.showLong("终端服务未绑定或绑定失败")
|
||||
// ToastUtils.showLong("终端服务未绑定或绑定失败")
|
||||
}
|
||||
|
||||
public fun execCmd(hostBean: SSHHostBean, cmd: String, msg: String?) {
|
||||
|
||||
@@ -121,7 +121,7 @@ class SystemResourceFrag : FmdBaseFragment(), OnRosHostClickListener,
|
||||
FlowBus.with<DockerBean>(EventKey.QUERY_DOCKER_PS)
|
||||
.register(this) {
|
||||
if (it.dockers.isEmpty()) {
|
||||
ToastUtils.showLong("Docker列表查询失败")
|
||||
// ToastUtils.showLong("Docker列表查询失败")
|
||||
} else {
|
||||
DockersDialog(fmdAct, it).show()
|
||||
}
|
||||
@@ -130,7 +130,7 @@ class SystemResourceFrag : FmdBaseFragment(), OnRosHostClickListener,
|
||||
FlowBus.with<DiskInfo>(EventKey.QUERY_DISK_STATUS)
|
||||
.register(this) {
|
||||
if (TextUtils.isEmpty(it.data)) {
|
||||
ToastUtils.showLong("磁盘信息查询失败")
|
||||
// ToastUtils.showLong("磁盘信息查询失败")
|
||||
} else {
|
||||
ShowConfigDialog(
|
||||
fmdAct,
|
||||
@@ -150,15 +150,15 @@ class SystemResourceFrag : FmdBaseFragment(), OnRosHostClickListener,
|
||||
} else {
|
||||
when (it.status) {
|
||||
DockerCommandHandler.CONNECT_STATUS.FAILED -> {
|
||||
ToastUtils.showLong("无法与主机“" + it.host.hostname + "”中的Docker建立连接")
|
||||
// ToastUtils.showLong("无法与主机“" + it.host.hostname + "”中的Docker建立连接")
|
||||
}
|
||||
|
||||
DockerCommandHandler.CONNECT_STATUS.CLOSE -> {
|
||||
ToastUtils.showLong("已断开主机“" + it.host.hostname + "”中的Docker连接")
|
||||
// ToastUtils.showLong("已断开主机“" + it.host.hostname + "”中的Docker连接")
|
||||
}
|
||||
|
||||
DockerCommandHandler.CONNECT_STATUS.CLOSE_DELAYED -> {
|
||||
ToastUtils.showLong("已自动断开主机“" + it.host.hostname + "”中的Docker连接")
|
||||
// ToastUtils.showLong("已自动断开主机“" + it.host.hostname + "”中的Docker连接")
|
||||
}
|
||||
}
|
||||
fmdAct.dismissLoadingDialog()
|
||||
@@ -167,7 +167,7 @@ class SystemResourceFrag : FmdBaseFragment(), OnRosHostClickListener,
|
||||
FlowBus.with<StartupConfig>(EventKey.QUERY_STARTUP_CONFIG)
|
||||
.register(this) {
|
||||
if (it.configs == null || it.configs.isEmpty()) {
|
||||
ToastUtils.showLong("启动配置查询失败")
|
||||
// ToastUtils.showLong("启动配置查询失败")
|
||||
} else {
|
||||
StartupConfigDialog(
|
||||
fmdAct,
|
||||
|
||||
@@ -436,7 +436,7 @@ class CheckAutopilotView @JvmOverloads constructor(
|
||||
mTrajectorySiteInfo?.let { trajectorySiteInfo ->
|
||||
if (trajectorySiteInfo.isEmpty()) {
|
||||
if (btnControlAutoPilot.isChecked) {
|
||||
ToastUtils.showShort("该路线缺少站点信息")
|
||||
// ToastUtils.showShort("该路线缺少站点信息")
|
||||
}
|
||||
btnControlAutoPilot.isChecked = false
|
||||
return@setOnClickListener
|
||||
|
||||
@@ -73,7 +73,7 @@ internal class GpsImpl(ctx: Context): IFlow<GpsStatus>(ctx) {
|
||||
|
||||
override fun onDenied() {
|
||||
// ToastUtils.showShort("定位权限被拒绝, 可能导致RTK定位不准确,请开启~")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_not_location_permission)
|
||||
// ToastUtils.showShort(R.string.module_mogo_core_function_devatools_not_location_permission)
|
||||
send(enabled = isLocationEnabled(), isGranted = false)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user