logo 进入调试 模式

This commit is contained in:
yangyakun
2025-06-17 11:14:13 +08:00
parent ae836ca847
commit 1dd95623a5

View File

@@ -9,6 +9,7 @@ import androidx.constraintlayout.widget.ConstraintLayout
import chassis.ChassisStatesOuterClass
import com.mogo.eagle.core.function.api.autopilot.IMoGoChassisStatesListener
import com.mogo.eagle.core.function.call.autopilot.CallerChassisStatesListenerManager
import com.mogo.eagle.core.function.hmi.ui.setting.ToggleDebugView
import com.mogo.eagle.core.utilcode.kotlin.*
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import com.mogo.eagle.core.utilcode.util.ClickUtils
@@ -47,6 +48,12 @@ class M2StatusBarView @JvmOverloads constructor(
setBackgroundColor(ResourcesUtils.getColor(R.color.white))
isClickable = true
isFocusable = true
iv_logon.setOnLongClickListener {
context?.let {
ToggleDebugView.toggleDebugView.toggle(it)
}
true
}
}