[2.15.0]code opt of roma and add trace

This commit is contained in:
zhongchao
2023-04-13 20:41:26 +08:00
parent 1076cccb77
commit 5e7fa79828
2 changed files with 19 additions and 18 deletions

View File

@@ -6,8 +6,8 @@ import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import com.mogo.eagle.core.data.multidisplay.TelematicConstant
import com.mogo.eagle.core.function.api.telematic.IReceivedMsgListener
import com.mogo.eagle.core.function.call.map.CallerMapIdentifyManager.romaTrigger
import com.mogo.eagle.core.function.call.telematic.CallerTelematicListenerManager
import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager
import com.mogo.eagle.core.function.hmi.R
import kotlinx.android.synthetic.main.view_roma_bg.view.*
@@ -28,7 +28,18 @@ class RomaView @JvmOverloads constructor(
LayoutInflater.from(context).inflate(R.layout.view_roma_bg, this, true)
setOnClickListener {
romaMode = !romaMode
romaTrigger(romaMode)
// 司机屏发送事件给乘客屏
if (romaMode) {
CallerTelematicManager.sendMsgToAllClients(
TelematicConstant.OPEN_ROMA_STATUS,
"0".toByteArray()
)
} else {
CallerTelematicManager.sendMsgToAllClients(
TelematicConstant.OPEN_ROMA_STATUS,
"1".toByteArray()
)
}
}
}