fix trafficlight ui problem

This commit is contained in:
zhongchao
2022-05-18 10:47:25 +08:00
parent 631ea91560
commit bf38c36780
3 changed files with 5 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ import com.mogo.eagle.core.function.hmi.WaringConst
class V2XTrafficLightBroadcastReceiver : BroadcastReceiver() {
private var mContext: Context? = null
//adb shell am broadcast -a com.hmi.v2x.trafficlight --ei trafficLightCheckType 1 --ei trafficLightCountDown 0 --ez trafficLightIsShow true
companion object {
private const val TAG = "V2XTrafficLightBroadcastReceiver"
}
@@ -57,9 +58,6 @@ class V2XTrafficLightBroadcastReceiver : BroadcastReceiver() {
*/
private fun dispatchShowWaring(trafficLightCheckType: Int, trafficLightCountDown: Int) {
CallerHmiManager.showWarningTrafficLight(trafficLightCheckType)
if(trafficLightCountDown == 0 ){
CallerHmiManager.disableWarningTrafficLightCountDown()
}
when(trafficLightCheckType){
1 -> CallerHmiManager.changeCountdownRed(trafficLightCountDown)
2 -> CallerHmiManager.changeCountdownYellow(trafficLightCountDown)

View File

@@ -99,6 +99,7 @@ class SingleTrafficLightView @JvmOverloads constructor(
)
mLightTimeTV!!.text = redNum.toString()
} else {
disableCountdown()
mLightTimeTV!!.text = ""
}
}
@@ -118,6 +119,7 @@ class SingleTrafficLightView @JvmOverloads constructor(
)
mLightTimeTV!!.text = greenNum.toString()
} else {
disableCountdown()
mLightTimeTV!!.text = ""
}
}
@@ -137,6 +139,7 @@ class SingleTrafficLightView @JvmOverloads constructor(
)
mLightTimeTV!!.text = yellowNum.toString()
} else {
disableCountdown()
mLightTimeTV!!.text = ""
}
}

View File

@@ -51,7 +51,7 @@ class MoGoMapDataCollectProvider : IMoGoMapDataCollectProvider, OnTaskListener,
GatherApi.also { itx ->
itx.init(it,
GatherParams.init()
.setDebugMode(DebugConfig.isDebug())
.setDebugMode(false)
.setCoordinateType(GatherParams.COORDINATETYPE_GCJ02))
} })
executor.get()?.setOnTaskListener(this)