[6.5.0]红绿灯优化

This commit is contained in:
xuxinchao
2024-07-17 12:15:42 +08:00
parent 66ef542f19
commit 0d2f1797cf
3 changed files with 17 additions and 10 deletions

View File

@@ -179,9 +179,9 @@ class TrafficLightDispatcher : IMoGoAutopilotIdentifyListener, IMoGoTrafficLight
lastLightTime = System.currentTimeMillis()
if (lightCountDownTimer == null){
UiThreadHandler.post {
lightCountDownTimer = object : CountDownTimer(300000, 1000) {
lightCountDownTimer = object : CountDownTimer(300000, 500) {
override fun onTick(millisUntilFinished: Long) {
if ((System.currentTimeMillis() - lastLightTime) > 1500) {
if ((System.currentTimeMillis() - lastLightTime) > 1000) {
//隐藏红绿灯显示
hide("倒计时结束隐藏", DataSourceType.TELEMATIC_UNION_V2N)
lightCountDownTimer?.cancel()