[m1]
[不需要兼容]
This commit is contained in:
@@ -548,11 +548,7 @@ object CharterPassengerModel {
|
||||
AbsMogoApplication.getApp()
|
||||
.getString(R.string.m1_end_order_5min), 2
|
||||
)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
VoiceManager.surplus5min(VoiceFocusManager.getVoiceCmdCallBack())
|
||||
}else{
|
||||
VoiceManager.surplus5min()
|
||||
}
|
||||
VoiceManager.surplus5min(VoiceFocusManager.getVoiceCmdCallBack())
|
||||
CallerLogger.d(M_BUS_P+ TAG,"倒计时5分钟${it.orderNo}")
|
||||
SharedPrefs.getInstance(mContext).putBoolean("${it.orderNo}$min5Speak",true)
|
||||
}
|
||||
@@ -858,12 +854,7 @@ object CharterPassengerModel {
|
||||
mContext, lindId = it, object : OchCommonServiceCallback<BaseData> {
|
||||
override fun onSuccess(data: BaseData?) {
|
||||
if (null != data && 0 == data.code) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
VoiceManager.arrivedStation(orderInfo!!.siteName!!,
|
||||
VoiceFocusManager.getVoiceCmdCallBack())
|
||||
}else{
|
||||
VoiceManager.arrivedStation(orderInfo!!.siteName!!,)
|
||||
}
|
||||
VoiceManager.arrivedStation(orderInfo!!.siteName!!, VoiceFocusManager.getVoiceCmdCallBack())
|
||||
broadcastList["${it}$endKey"] = true
|
||||
// 到站结束自驾
|
||||
CallerAutoPilotControlManager.cancelAutoPilot()
|
||||
@@ -883,13 +874,9 @@ object CharterPassengerModel {
|
||||
}
|
||||
}
|
||||
|
||||
fun leaveStation(){
|
||||
fun leaveStation() {
|
||||
orderInfo?.siteName?.let {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
VoiceManager.leaveStation(it,VoiceFocusManager.getVoiceCmdCallBack())
|
||||
}else{
|
||||
VoiceManager.leaveStation(it)
|
||||
}
|
||||
VoiceManager.leaveStation(it, VoiceFocusManager.getVoiceCmdCallBack())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.mogo.eagle.core.utilcode.util.UiThreadHandler
|
||||
import com.shuyu.gsyvideoplayer.GSYVideoManager
|
||||
|
||||
object VoiceFocusManager {
|
||||
@RequiresApi(Build.VERSION_CODES.O)
|
||||
|
||||
fun getVoiceCmdCallBack():IMogoVoiceCmdCallBack{
|
||||
UiThreadHandler.post {
|
||||
GSYVideoManager.onPause()
|
||||
|
||||
Reference in New Issue
Block a user