[6.7.0] fix bug

This commit is contained in:
EmArrow
2024-09-23 14:57:47 +08:00
parent e356b741f0
commit bb1f2279d5
2 changed files with 5 additions and 4 deletions

View File

@@ -11,9 +11,9 @@ interface IOchFunctionCall {
fun registerToolKitDefaultItemClickListener(tag: String, listener: IToolKitItemClickListener) {}
// 车型变化回调
fun invokeCarMode(carModel: String?)
fun invokeCarMode(carModel: String?){}
// 车牌变化回调
fun invokePlateNumber(plateNumber: String?)
fun invokePlateNumber(plateNumber: String?){}
}

View File

@@ -19,14 +19,15 @@ object CallerOchFunctionCallManager : CallerBase<IOchFunctionCall>() {
}
// 车的类型
var carModel:String? by Delegates.observable(null) { _, oldValue, newValue ->
private var carModel:String? by Delegates.observable(null) { _, oldValue, newValue ->
if (oldValue != newValue) {
M_LISTENERS.forEach {
it.value.invokeCarMode(carModel)
}
}
}
var plateNumber:String? by Delegates.observable(null) { _, oldValue, newValue ->
private var plateNumber:String? by Delegates.observable(null) { _, oldValue, newValue ->
if (oldValue != newValue) {
M_LISTENERS.forEach {
it.value.invokePlateNumber(plateNumber)