[M2] 长按速度出调试框

This commit is contained in:
wangmingjun
2023-03-16 15:56:34 +08:00
parent 842571af49
commit 9e8ef64353

View File

@@ -46,8 +46,9 @@ class PM2DrivingInfoFragment :
}
override fun initViews() {
speed_tv.onClick {
context?.let { it -> ToggleDebugView.toggleDebugView.toggle(it) }
speed_tv.setOnLongClickListener {
context?.let { ToggleDebugView.toggleDebugView.toggle(it) }
true
}
line_name_tv.setTextColor(resources.getColor(R.color.m2_line_name_tv_color))