fix工控机断开连接提示

修改提示Toast,之前Toast最大提示文字为20,会出现显示不全问题
This commit is contained in:
xuxinchao
2022-04-25 15:07:56 +08:00
parent ecde707c81
commit 771c0f66d6

View File

@@ -9,7 +9,7 @@ import com.mogo.eagle.core.function.autopilot.network.AdasServiceModel
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_ADAS_IMPL
import com.mogo.eagle.core.utilcode.mogo.toast.TipToast
import com.mogo.eagle.core.utilcode.util.ToastUtils
import com.zhidao.support.adas.high.AdasManager
import com.zhidao.support.adas.high.OnAdasConnectStatusListener
import com.zhidao.support.adas.high.common.Constants
@@ -55,7 +55,7 @@ class MoGoAdasMsgConnectStatusListenerImpl : OnAdasConnectStatusListener,
CallerLogger.d("$M_ADAS_IMPL$TAG", "webSocket 连接失败 reason:$reason")
if (connectStatus) {
reason?.let {
TipToast.shortTip("工控机连接断开,原因:$it , 等待重连")
ToastUtils.showLong("工控机连接断开,原因:$it , 等待重连")
}
connectStatus = false
}