[680][core] 优雅停服后的异常提示优化 收到命令回执后将不在进行消息盒子弹出提示

This commit is contained in:
xinfengkun
2024-11-21 10:22:12 +08:00
parent 0bcfd98242
commit 72c5d68c91
6 changed files with 63 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ import com.mogo.eagle.core.data.msgbox.MsgFmData
import com.mogo.eagle.core.function.api.datacenter.IDataCenterBizListener
import com.mogo.eagle.core.function.api.datacenter.msgbox.IMsgBoxListener
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
import com.mogo.eagle.core.function.call.autopilot.CallerIpcConnectStateToastManager
import com.mogo.eagle.core.function.call.datacenter.CallerDataCenterBizListener
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxEventListenerManager
@@ -87,6 +88,9 @@ class MsgBoxToastView @JvmOverloads constructor(
UiThreadHandler.post({
when (category) {
MsgCategory.NOTICE -> {
if (msgBoxBean.type == MsgBoxType.AUTOPILOT && !CallerIpcConnectStateToastManager.isToast) {
return@post
}
MsgBoxConfig.noticeList.add(msgBoxBean)
}