[6.5.0][道路事件] 修正行人/非机动车横穿未播报语音
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user