[6.5.0] feat: 通过公交站点计算逻辑实现;

This commit is contained in:
aibingbing
2024-07-01 19:37:24 +08:00
parent 59acceb7c0
commit db0e9a9349
4 changed files with 216 additions and 66 deletions

View File

@@ -33,7 +33,6 @@ import kotlinx.android.synthetic.main.hmi_view_road_v2n_event_window.view.tvV2XT
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import me.jessyan.autosize.utils.AutoSizeUtils
import java.util.UUID
/**
* 路侧V2N事件通用弹框
@@ -248,32 +247,6 @@ class RoadV2NEventWindowView @JvmOverloads constructor(
super.onAttachedToWindow()
CallerRoadV2NEventWindowListenerManager.addListener(TAG, this)
initView()
//TODO
val eventId = UUID.randomUUID().toString()
CallerRoadV2NEventWindowListenerManager.show(
eventId,
System.currentTimeMillis(),
R.drawable.v2x_icon_shigong_zhandao,
"前方 200米 道路积水",
true,
"172.168.1.20",
0.0,
0.0
)
UiThreadHandler.postDelayed({
CallerRoadV2NEventWindowListenerManager.dismiss(eventId)
val eventId1 = CallerRoadV2NEventWindowListenerManager.show(
UUID.randomUUID().toString(),
System.currentTimeMillis(),
R.drawable.v2x_icon_jiaotongshigu_vr,
"前方 300米 发生交通事故",
true,
"172.168.1.20",
0.0,
0.0
)
}, 20 * 1000L)
}
override fun onDetachedFromWindow() {