[8.2.6][] 调试窗添加重启乘客屏功能
This commit is contained in:
@@ -38,6 +38,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant
|
||||
import com.mogo.eagle.core.utilcode.util.AppStateManager
|
||||
import com.mogo.eagle.core.utilcode.util.GsonUtils
|
||||
import com.mogo.eagle.core.utilcode.util.RebootUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ThreadUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.mogo.telematic.MogoProtocolMsg
|
||||
@@ -394,6 +395,14 @@ class TeleMsgHandler : IMsgHandler {
|
||||
}
|
||||
CallerTelematicListenerManager.dispatchB2DemoMode(value)
|
||||
}
|
||||
TelematicConstant.PASSENGER_APP_REBOOT -> {
|
||||
Log.i("xfk","乘客端收到司机端下发的重启命令")
|
||||
CallerTelematicManager.sendMsgToServer(
|
||||
TelematicConstant.PASSENGER_APP_REBOOT,
|
||||
"".toByteArray()
|
||||
)
|
||||
RebootUtils.restartApp()
|
||||
}
|
||||
|
||||
TelematicConstant.SHOW_TRAFFIC_LIGHT -> {
|
||||
val trafficLightJson = String(it.body)
|
||||
@@ -508,7 +517,9 @@ class TeleMsgHandler : IMsgHandler {
|
||||
// 来自客户端的响应
|
||||
CallerTelematicListenerManager.invokeReceivedMsg(TelematicConstant.DRIVE_SEAT_VIDEO_STREAM_RSP, it.body)
|
||||
}
|
||||
|
||||
TelematicConstant.PASSENGER_APP_REBOOT -> {
|
||||
ToastUtils.showLong("乘客屏已收到重启命令")
|
||||
}
|
||||
else -> {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user