[2.12.0] taxi预约单关闭时候中断语音播报

This commit is contained in:
wangmingjun
2022-11-08 17:57:18 +08:00
parent d4b800e89e
commit 2225fed83a
2 changed files with 11 additions and 0 deletions

View File

@@ -36,4 +36,14 @@ object VoiceNotice {
}
}
}
/**
* 中断当前在播语音
*/
@JvmStatic
fun stopCurrentTts(){
UiThreadHandler.post {
AIAssist.getInstance(AbsMogoApplication.getApp()).stopTts()
}
}
}

View File

@@ -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("抢单中...")){