[6.7.0] fix bug
This commit is contained in:
@@ -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?){}
|
||||
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user