[6.3.0]消息盒子过滤不展示RTK的Error

This commit is contained in:
xuxinchao
2024-03-07 15:46:05 +08:00
parent 02fc40a598
commit 1a5bff79fc

View File

@@ -114,6 +114,14 @@ class IPCReportManager : IMoGoAutopilotStatusListener {
|| it.code == MogoReport.Code.Info.IVEHICLE.NOT_IN_TROUBLE
|| it.code == MogoReport.Code.Info.ILCT.RTK_STATUS_NORMAL
){
/**
* rtk报error后历史信息会一直在消息盒子里异常恢复后消息会产生误导
* 并且目前有fm和通知栏状态去表示rtk状态error消息可以删除不显示
*/
if(it.code == MogoReport.Code.Error.ELCT.RTK_STATUS_FAULT
|| it.code == MogoReport.Code.Error.ELCT.RTK_STATUS_UNKNOWN){
return@let
}
val reportEntity = ReportEntity(TimeUtils.millis2String(System.currentTimeMillis()),
it.src,it.level,it.msg,it.code,it.resultList,it.actionsList,false)
CallerMsgBoxManager.saveMsgBox(MsgBoxBean(MsgBoxType.REPORT, reportEntity))