[6.9.0]消息盒子增加OTA升级消息

This commit is contained in:
xuxinchao
2024-12-31 11:19:40 +08:00
parent 183d821fe5
commit a8b8f4cee8
12 changed files with 363 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ object DataManager {
CallerMsgBoxListenerManager.invokeListener(MsgCategory.SYS_INFO, msg)
}
MsgBoxType.OBU, MsgBoxType.NOTICE, MsgBoxType.OPERATION -> {
MsgBoxType.OBU, MsgBoxType.NOTICE, MsgBoxType.OPERATION,MsgBoxType.OTA -> {
synchronized(this) {
notifyList.add(msg)
}
@@ -370,6 +370,18 @@ object DataManager {
}
}
MsgBoxType.OTA.ordinal -> {
return@map MsgBoxBean(
MsgBoxType.OTA,
GsonUtils.fromJson(json,OTAMsg::class.java)
).apply {
this.timestamp = msgInfo.timeStamp
withContext(Dispatchers.Main) {
cacheNotifyList.add(this@apply)
}
}
}
else -> {
return@map null
}