[8.4.0]临时代码,注释吐司提示
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user