[2.12.0] taxi预约单关闭时候中断语音播报
This commit is contained in:
@@ -36,4 +36,14 @@ object VoiceNotice {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 中断当前在播语音
|
||||
*/
|
||||
@JvmStatic
|
||||
fun stopCurrentTts(){
|
||||
UiThreadHandler.post {
|
||||
AIAssist.getInstance(AbsMogoApplication.getApp()).stopTts()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -78,6 +78,7 @@ public class TaxiGrabOrderFragment extends BaseTaxiUIFragment implements View.On
|
||||
if (null != countDownTimer){
|
||||
countDownTimer.cancel();
|
||||
}
|
||||
VoiceNotice.stopCurrentTts();//中断当前在播语音
|
||||
getOchTaxiFragment().cancelNewBookingOrder();
|
||||
}else if (v.getId() == R.id.grab_order_tv){
|
||||
if (!mOrderGrabBt.getText().toString().equals("抢单中...")){
|
||||
|
||||
Reference in New Issue
Block a user