[6.2.0][Opt]新增乘客屏美化模式变化回调

This commit is contained in:
chenfufeng
2023-11-13 11:45:53 +08:00
parent c95700933d
commit 6a5bc955b2
3 changed files with 36 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
package com.mogo.eagle.core.function.call.telematic
import android.util.Log
import com.mogo.eagle.core.data.config.FunctionBuildConfig
import com.mogo.eagle.core.function.api.telematic.IReceivedMsgListener
import com.mogo.eagle.core.function.call.base.CallerBase
@@ -29,4 +30,18 @@ object CallerTelematicListenerManager: CallerBase<IReceivedMsgListener>() {
}
}
}
fun dispatchDemoMode(isDemoMode: Boolean) {
if (isDemoMode != FunctionBuildConfig.isDemoMode) {
FunctionBuildConfig.isDemoMode = isDemoMode
M_LISTENERS.forEach {
val listener = it.value
try {
listener.onDemoMode(isDemoMode)
} catch (e: Exception) {
Log.e(TAG, "转发美化模式出现异常:${e.message}")
}
}
}
}
}