From 57edc8dffb8fd9da9671230978c053def3a15cc0 Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Wed, 31 Jul 2024 17:07:51 +0800 Subject: [PATCH] =?UTF-8?q?[6.5.1=5Fexam]Taxi=E5=A2=9E=E5=8A=A0=E5=BA=A7?= =?UTF-8?q?=E6=A4=85=E5=8E=8B=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo/och/taxi/ui/BaseTaxiTabFragment.java | 35 +++++++++++++++++- .../main/res/layout/taxi_base_fragment.xml | 32 ++++++++++++++++ .../taxi/ui/base/BaseTaxiTabFragment.kt | 30 ++++++++++++++- .../layout/unmanned_taxi_base_fragment.xml | 33 +++++++++++++++++ .../hmi/ui/setting/SeatPressureSettingView.kt | 13 +++++++ .../api/setting/ISeatPressureEventListener.kt | 10 +++++ .../call/setting/CallerSeatPressureManager.kt | 11 +++--- .../call/setting/CallerTakeOverManager.kt | 19 ++++++++++ .../res/drawable-xhdpi/icon_seat_pressure.png | Bin 0 -> 1553 bytes 9 files changed, 176 insertions(+), 7 deletions(-) create mode 100644 core/mogo-core-function-api/src/main/java/com/mogo/eagle/core/function/api/setting/ISeatPressureEventListener.kt create mode 100644 core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/setting/CallerTakeOverManager.kt create mode 100644 core/mogo-core-res/src/main/res/drawable-xhdpi/icon_seat_pressure.png diff --git a/OCH/taxi/driver/src/main/java/com/mogo/och/taxi/ui/BaseTaxiTabFragment.java b/OCH/taxi/driver/src/main/java/com/mogo/och/taxi/ui/BaseTaxiTabFragment.java index f370397d2b..8e4970dc78 100644 --- a/OCH/taxi/driver/src/main/java/com/mogo/och/taxi/ui/BaseTaxiTabFragment.java +++ b/OCH/taxi/driver/src/main/java/com/mogo/och/taxi/ui/BaseTaxiTabFragment.java @@ -12,6 +12,7 @@ import android.view.ViewGroup; import android.view.animation.LinearInterpolator; import android.widget.FrameLayout; import android.widget.ImageView; +import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; @@ -25,13 +26,16 @@ import com.mogo.commons.mvp.IView; import com.mogo.commons.mvp.MvpFragment; import com.mogo.commons.mvp.Presenter; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener; +import com.mogo.eagle.core.function.api.setting.ISeatPressureEventListener; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotRecordListenerManager; import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager; +import com.mogo.eagle.core.function.call.setting.CallerSeatPressureManager; import com.mogo.eagle.core.function.hmi.ui.msgbox.DriverMsgBoxBubbleView; import com.mogo.eagle.core.function.hmi.ui.msgbox.DriverMsgBoxButtonView; import com.mogo.eagle.core.function.hmi.ui.msgbox.DriverMsgBoxListView; +import com.mogo.eagle.core.function.hmi.ui.setting.SeatPressureSettingView; import com.mogo.eagle.core.function.view.MapBizView; import com.mogo.eagle.core.function.smp.view.SmallMapView; import com.mogo.eagle.core.function.view.MapRoamView; @@ -56,7 +60,7 @@ import me.jessyan.autosize.utils.AutoSizeUtils; * * @author tongchenfei */ -public abstract class BaseTaxiTabFragment> extends MvpFragment implements IMogoMapListener { +public abstract class BaseTaxiTabFragment> extends MvpFragment implements IMogoMapListener , ISeatPressureEventListener { private static final String TAG = "BaseOchFragment"; private RelativeLayout ctvAutopilotStatusRL; @@ -85,6 +89,9 @@ public abstract class BaseTaxiTabFragment { + if(seatPressureSettingView.getVisibility() == View.VISIBLE){ + seatPressureSettingView.setVisibility(View.GONE); + }else{ + seatPressureSettingView.setVisibility(View.VISIBLE); + } + }); + CallerSeatPressureManager.INSTANCE.addListener(TAG,this); } @Override @@ -279,6 +298,7 @@ public abstract class BaseTaxiTabFragment + + + + + + +