[8.2.8][i18n] 所有吐司 中文抽取
This commit is contained in:
@@ -8,6 +8,7 @@ import com.mogo.eagle.core.data.msgbox.MsgBoxType
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
|
||||
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.mogo.och.bridge.R
|
||||
import com.mogo.och.bridge.autopilot.OCHAdasAbilityManager
|
||||
import com.mogo.och.bridge.autopilot.autopilot.bean.SessionWithTime
|
||||
import com.mogo.och.bridge.autopilot.line.LineManager
|
||||
@@ -52,7 +53,8 @@ object OchAutoPilotManager {
|
||||
clearGlobalSessionId("检测session 自带的时间 ${currentTimeMillis}_${sessionInfo.setTime}_${sessionInfo.sessionId}")
|
||||
return true
|
||||
}else{
|
||||
ToastUtils.showLong("自驾启动中,请勿重复点击")
|
||||
// ToastUtils.showLong("自驾启动中,请勿重复点击")
|
||||
ToastUtils.showLong(R.string.module_och_autopilot_starting_not_click)
|
||||
OchAutopilotAnalytics.triggerCanStartAutopilotBySessionId(globalSessionId.get())
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_
|
||||
import com.mogo.eagle.core.utilcode.util.CoordinateUtils
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.mogo.och.bridge.R
|
||||
import com.mogo.och.common.module.constant.OchCommonConst
|
||||
import com.mogo.och.bridge.autopilot.OCHAdasAbilityManager
|
||||
import com.mogo.och.bridge.autopilot.autopilot.OchAutoPilotManager
|
||||
@@ -456,7 +457,8 @@ object LineManager : CallerBase<ILineCallback>() {
|
||||
}
|
||||
CallerLogger.d(TAG, "${parameters?.wayLatLons}\n${parameters?.blackLatLons}")
|
||||
if (parameters == null) {
|
||||
ToastUtils.showShort("未设置起始或终点站点")
|
||||
// ToastUtils.showShort("未设置起始或终点站点")
|
||||
ToastUtils.showShort(R.string.module_och_not_stat_and_end_point)
|
||||
}
|
||||
return parameters
|
||||
}
|
||||
@@ -533,13 +535,15 @@ object LineManager : CallerBase<ILineCallback>() {
|
||||
fun startAutopilot() {
|
||||
|
||||
if (startStation == null || endStation == null) {
|
||||
ToastUtils.showShort("未设置起始或终点站点")
|
||||
// ToastUtils.showShort("未设置起始或终点站点")
|
||||
ToastUtils.showShort(R.string.module_och_not_stat_and_end_point)
|
||||
return
|
||||
}
|
||||
|
||||
startStation?.let {
|
||||
if (!it.isLeaving) {
|
||||
ToastUtils.showShort("请滑动出发后再启动自驾")
|
||||
// ToastUtils.showShort("请滑动出发后再启动自驾")
|
||||
ToastUtils.showShort(R.string.module_och_please_slide_hint)
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -555,14 +559,16 @@ object LineManager : CallerBase<ILineCallback>() {
|
||||
|
||||
//1、判断轨迹url是否可用
|
||||
if (_contraiInfo == null) {
|
||||
ToastUtils.showLong("无发布轨迹, 请发布后重试")
|
||||
// ToastUtils.showLong("无发布轨迹, 请发布后重试")
|
||||
ToastUtils.showLong(R.string.module_taxi_no_publication_trajectory)
|
||||
return
|
||||
} else {
|
||||
if (FunctionBuildConfig.isPassStartAutopilotCommand
|
||||
&& TextUtils.isEmpty(_contraiInfo!!.csvFileUrl)
|
||||
&& TextUtils.isEmpty(_contraiInfo!!.csvFileMd5)
|
||||
) {
|
||||
ToastUtils.showLong("无发布轨迹, 请发布后重试")
|
||||
// ToastUtils.showLong("无发布轨迹, 请发布后重试")
|
||||
ToastUtils.showLong(R.string.module_taxi_no_publication_trajectory)
|
||||
e(
|
||||
TAG, "isPassStartAutopilotCommand = " +
|
||||
FunctionBuildConfig.isPassStartAutopilotCommand
|
||||
@@ -685,7 +691,8 @@ object LineManager : CallerBase<ILineCallback>() {
|
||||
} else {
|
||||
// 地盘有但是和och出不一样
|
||||
// todo 需要och 重新出发轨迹下载操作
|
||||
ToastUtils.showShort("${autopilotIdFromFsm}_${teleOrderId}_自动驾驶id不同请排查")
|
||||
// ToastUtils.showShort("${autopilotIdFromFsm}_${teleOrderId}_自动驾驶id不同请排查")
|
||||
ToastUtils.showShort(R.string.module_och_autopilot_id_diff, autopilotIdFromFsm, teleOrderId)
|
||||
OchChainLogManager.writeChainLogAutopilot(
|
||||
"自驾Id",
|
||||
"${autopilotIdFromFsm}_${teleOrderId}_自动驾驶id不同请排查"
|
||||
|
||||
Reference in New Issue
Block a user