[6.5.0][道路事件] 修正行人/非机动车横穿未播报语音

This commit is contained in:
renwj
2024-07-11 20:03:36 +08:00
parent 94b94b7910
commit 1d2d83bec5
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ import com.mogo.eagle.core.utilcode.kotlin.scope
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
import com.mogo.eagle.core.utilcode.rv.divider.CommonDividerItemDecoration
import com.mogo.eagle.core.utilcode.util.SizeUtils
import com.mogo.eagle.core.utilcode.util.UiThreadHandler
import kotlinx.coroutines.Runnable
import kotlinx.coroutines.launch
import kotlin.math.abs
@@ -121,7 +120,6 @@ class GreenWaveView: LinearLayout, IMoGoChassisLocationGCJ02Listener, RecyclerVi
CallerHmiViewControlListenerManager.removeListener(this)
val rv: RecyclerView? = if (isDriver) driver_wave_rv else passenger_wave_rv
rv?.removeOnItemTouchListener(this)
stopAutoScroll()
}
override fun onChassisLocationGCJ02(mogoLocation: MogoLocation?) {
@@ -132,7 +130,7 @@ class GreenWaveView: LinearLayout, IMoGoChassisLocationGCJ02Listener, RecyclerVi
lastSpeed = speed
}
if (isChanged) {
UiThreadHandler.post {
scope.launch {
if (isDriver) {
driver_speed?.text = speed.toString()
} else {
@@ -166,6 +164,7 @@ class GreenWaveView: LinearLayout, IMoGoChassisLocationGCJ02Listener, RecyclerVi
private fun hide() {
scope.launch {
stopAutoScroll()
visibility = View.GONE
}
}