[charter]

[3.2.0]
[tts车门打开禁止启动自驾]
This commit is contained in:
yangyakun
2023-05-12 11:11:08 +08:00
parent f115e03902
commit bd701580ed
2 changed files with 9 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.appcompat.widget.AppCompatTextView
import com.mogo.commons.AbsMogoApplication
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
@@ -16,6 +17,7 @@ import com.mogo.eagle.core.utilcode.util.ToastUtils
import com.mogo.och.bus.passenger.R
import com.mogo.och.bus.passenger.model.CharterPassengerModel
import com.mogo.och.bus.passenger.ui.view.bottom.BottomClickView
import com.mogo.och.common.module.manager.devicemanage.LightAirconditionDoorStatusManager
import com.mogo.och.common.module.utils.SoundPoolHelper
import kotlinx.android.synthetic.main.m1_bottom_bar.view.*
@@ -61,6 +63,12 @@ class GoView @JvmOverloads constructor(
}
private fun startGo(){
if (LightAirconditionDoorStatusManager.doorStatus.isOpen) {
val string = AbsMogoApplication.getApp().getString(R.string.m1_close_door_and_startauto)
ToastUtils.showShort(string)
return
}
when (CallerAutoPilotStatusListenerManager.getAutoPilotStatusInfo().state) {
IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_DISABLE -> {// 不可自动驾驶
ToastUtils.showShort("设备未就绪请稍等")

View File

@@ -45,7 +45,7 @@
<string name="m1_novice_guidance_notice_tts">最后,蘑菇小助手为您送上乘车小贴士~</string>
<string name="m1_novice_guidance_complier_tts">太棒了!您已完成乘车指南,更多功能欢迎探索~蘑菇小助手预祝您旅途愉快</string>
<!-- <string name="m1_novice_guidance_tts">先关闭车门再启动吧~</string>-->
<string name="m1_close_door_and_startauto">先关闭车门再启动吧~</string>
<!-- <string name="m1_novice_guidance_tts">车辆起步扶稳坐好哟前方到站XXX</string>-->
<!-- <string name="m1_novice_guidance_tts">自驾系统繁忙,稍后再试试吧~</string>-->