[2.15.0]add func of obu config start up

This commit is contained in:
zhongchao
2023-04-03 15:42:44 +08:00
parent 94bb6c976b
commit 6056c6bc66
6 changed files with 21 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
package com.mogo.eagle.core.function.datacenter.obu
import android.content.Context
import com.mogo.eagle.core.data.app.AppConfigInfo
import com.mogo.eagle.core.data.config.FunctionBuildConfig
import com.mogo.eagle.core.data.config.HmiBuildConfig
import com.mogo.eagle.core.data.enums.*
@@ -222,6 +223,9 @@ class MogoPrivateObuNewManager private constructor() : OnUpgradeListener {
* @param data 系统状态
*/
override fun onObuSystemStatus(data: MogoObuSystemStatusData?) {
data?.let {
AppConfigInfo.obuInfo = it.toString()
}
CallerObuInfoListenerManager.invokeGetObuInfo(data.toString())
}
@@ -246,7 +250,7 @@ class MogoPrivateObuNewManager private constructor() : OnUpgradeListener {
val str =
if (result.function === MogoObuConstants.CALL_FUNCTION.TOPIC_REGIST) "注册" else "取消注册"
val callRegisterResult = result as MogoObuCallRegisterResult
if (callRegisterResult.results != null && !callRegisterResult.results.isEmpty()) {
if (callRegisterResult.results != null && callRegisterResult.results.isNotEmpty()) {
val size = callRegisterResult.results.size
var i = 0
while (i < size) {