add log and fix ui problem

This commit is contained in:
zhongchao
2021-11-16 11:24:53 +08:00
parent 7b3744813e
commit 1d23319d35
2 changed files with 2 additions and 1 deletions

View File

@@ -285,7 +285,7 @@ class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>
}
override fun isWarningTrafficLightShow(): Boolean {
return viewTrafficLightVr.visibility == View.VISIBLE
return viewTrafficLightVr?.visibility == View.VISIBLE
}
/**

View File

@@ -130,6 +130,7 @@ class MogoTrafficLightManager : IMogoCarLocationChangedListener2 {
trafficLightResult!!.lon, trafficLightResult!!.lat
) < 10)
) {
Logger.d(TAG,"开过路口")
trafficLightResult = null
TrafficLightHMIManager.INSTANCE.hideTrafficLight()
CallTrafficLightListenerManager.resetTrafficLightData()