[3.3.0] add func of demo view and rain view in main page ,plus union the sopview control ,and fix bug of chain

This commit is contained in:
zhongchao
2023-06-20 14:23:49 +08:00
parent 7a3cda73dd
commit 296be52760
15 changed files with 170 additions and 40 deletions

View File

@@ -2,6 +2,7 @@ package com.mogo.eagle.core.function.call.hmi
import android.view.ViewGroup
import com.mogo.eagle.core.function.api.hmi.view.IViewControlListener
import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotActionsListenerManager
import com.mogo.eagle.core.function.call.base.CallerBase
/**
@@ -23,13 +24,20 @@ object CallerHmiViewControlListenerManager : CallerBase<IViewControlListener>()
M_LISTENERS[tag]?.setStatusBarDarkOrLight(light)
}
fun invokeFuncMode(funcTag:String, boolean: Boolean){
M_LISTENERS.forEach {
val listener = it.value
listener.updateFuncMode(funcTag, boolean)
}
}
fun updateStatusBarRightView(
tag: String,
insert: Boolean,
viewTag: String,
viewGroup: ViewGroup
) {
M_LISTENERS[tag]?.updateStatusBarRightView(insert, tag, viewGroup)
M_LISTENERS[tag]?.updateStatusBarRightView(insert, viewTag, viewGroup)
}
fun updateStatusBarLeftView(
@@ -38,7 +46,7 @@ object CallerHmiViewControlListenerManager : CallerBase<IViewControlListener>()
viewTag: String,
viewGroup: ViewGroup
) {
M_LISTENERS[tag]?.updateStatusBarLeftView(insert, tag, viewGroup)
M_LISTENERS[tag]?.updateStatusBarLeftView(insert, viewTag, viewGroup)
}
fun updateStatusBarDownloadView(tag: String, insert: Boolean, viewTag: String, progress: Int) {