cherry-pick 小鹏 adbd5804d

This commit is contained in:
lixiaopeng
2022-07-15 11:40:05 +08:00
committed by liujing
parent 76d9f1c141
commit d0924ab4d8
2 changed files with 22 additions and 4 deletions

View File

@@ -999,6 +999,7 @@ import java.util.*
*/
override fun showTurnLight(light: Int) {
if (HmiBuildConfig.isShowTurnLightView) {
Log.e("liyz", "showTurnLight light = $light")
ThreadUtils.runOnUiThread {
if (light == 1) {
if (!isLeftLight) {
@@ -1038,6 +1039,7 @@ import java.util.*
*/
override fun showBrakeLight(light: Int) {
if (HmiBuildConfig.isShowBrakeLightView) {
Log.e("liyz", "showBrakeLight isBrake = $isBrake")
ThreadUtils.runOnUiThread {
if (light == 1) { //刹车灯亮
if (!isBrake) {
@@ -1045,8 +1047,10 @@ import java.util.*
CallerMapUIServiceManager.getMapUIController()?.setCarLightsType(0, 500)
}
} else {
isBrake = false
CallerMapUIServiceManager.getMapUIController()?.setCarLightsType(3, 500)
if (isBrake) {
isBrake = false
CallerMapUIServiceManager.getMapUIController()?.setCarLightsType(3, 500)
}
}
// brakeView?.let {