[2.15.0]add func of obu config start up
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user