From dc097005795cb8938c2d8e11bc9793696be40355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Fri, 14 May 2021 13:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=B6=E8=BD=A6tts?= =?UTF-8?q?=EF=BC=8C=E6=89=93=E5=BC=80=E6=94=B6=E8=BD=A6=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E7=AB=99=E7=82=B9=E4=BF=A1=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mogo/och/bus/fragment/OchBusFragment.java | 15 +++++++-------- .../main/java/com/mogo/och/BaseOchFragment.java | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java index df5bb84de8..17e26d4f0b 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java @@ -6,6 +6,7 @@ import android.widget.TextView; import androidx.annotation.NonNull; import com.mogo.commons.debug.DebugConfig; +import com.mogo.commons.voice.AIAssist; import com.mogo.module.common.MogoApisHandler; import com.mogo.och.BaseOchFragment; import com.mogo.och.bus.R; @@ -73,9 +74,6 @@ public class OchBusFragment extends BaseOchFragment< OchBusFragment, OchBusPrese default: break; } - - // 展示站点信息 - showPanel(); } @NonNull @@ -223,12 +221,13 @@ public class OchBusFragment extends BaseOchFragment< OchBusFragment, OchBusPrese isOperationStatus = launch; if ( launch ) { tvOperationStatus.setText( "收车" ); - //showSlidePanle("滑动出发"); - //showPanel(); + showSlidePanle("滑动出发"); + showPanel(); } else { - tvOperationStatus.setText( "出车" ); - //hideSlidePanel(); - //hidPanel(); + AIAssist.getInstance(getContext()).speakTTSVoice("已收车"); + tvOperationStatus.setText("出车"); + hideSlidePanel(); + hidPanel(); } } } diff --git a/OCH/mogo-och/src/main/java/com/mogo/och/BaseOchFragment.java b/OCH/mogo-och/src/main/java/com/mogo/och/BaseOchFragment.java index 6b7405e990..eacee5b82f 100644 --- a/OCH/mogo-och/src/main/java/com/mogo/och/BaseOchFragment.java +++ b/OCH/mogo-och/src/main/java/com/mogo/och/BaseOchFragment.java @@ -131,12 +131,12 @@ public abstract class BaseOchFragment> e * @param text 指定的文字 */ public void showSlidePanle(String text) { - //if (isOperationStatus) { + if (isOperationStatus) { getActivity().runOnUiThread(() -> { slidePanelView.setText(text); slidePanelView.setVisibility(View.VISIBLE); }); - //} + } } /**