[6.2.0][Opt]新增乘客屏美化模式变化回调
This commit is contained in:
@@ -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}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user