[2.15.0]code opt of roma and add trace
This commit is contained in:
@@ -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()
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user