[6.5.0] fix bug of request auth and result

This commit is contained in:
EmArrow
2024-06-24 16:31:07 +08:00
parent 1e13d2cae1
commit 9c03d23018
16 changed files with 154 additions and 88 deletions

View File

@@ -0,0 +1,26 @@
package com.mogo.eagle.core.function.hmi.ui.camera
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import com.mogo.eagle.core.function.hmi.R
class RoadCrossLiveView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : ConstraintLayout(context, attrs, defStyleAttr) {
init {
LayoutInflater.from(context).inflate(R.layout.view_road_cross_live, this, true)
}
override fun onAttachedToWindow() {
super.onAttachedToWindow()
}
override fun onDetachedFromWindow() {
super.onDetachedFromWindow()
}
}

View File

@@ -420,16 +420,16 @@ internal class DebugSettingView @JvmOverloads constructor(
*/
tbStatusCenter.setOnCheckedChangeListener { buttonView, isChecked ->
val cross = RoadCross()
CallerMapRoadListenerManager.invokeRoadChange(0, cross)
// if (isChecked) {
// buttonView.setCompoundDrawables(null, null, iconDown, null)
// //展示状态中心
// statusCenterLayout.visibility = View.VISIBLE
// } else {
// buttonView.setCompoundDrawables(null, null, iconRight, null)
// //隐藏状态中心
// statusCenterLayout.visibility = View.GONE
// }
// CallerMapRoadListenerManager.invokeRoadChange(0, cross)
if (isChecked) {
buttonView.setCompoundDrawables(null, null, iconDown, null)
//展示状态中心
statusCenterLayout.visibility = View.VISIBLE
} else {
buttonView.setCompoundDrawables(null, null, iconRight, null)
//隐藏状态中心
statusCenterLayout.visibility = View.GONE
}
}
/**

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>