[6.9.0]消息盒子增加OTA升级消息
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user