diff --git a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/presenter/BusPassengerFunctionDevicePresenter.kt b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/presenter/BusPassengerFunctionDevicePresenter.kt
index 7b28e3fd3c..60b00eb555 100644
--- a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/presenter/BusPassengerFunctionDevicePresenter.kt
+++ b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/presenter/BusPassengerFunctionDevicePresenter.kt
@@ -4,6 +4,7 @@ import androidx.lifecycle.LifecycleOwner
import com.mogo.eagle.core.data.map.MogoLocation
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
+import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import com.mogo.eagle.core.utilcode.util.ToastUtils
import com.mogo.och.bus.passenger.callback.IBusPassengerControllerStatusCallback
import com.mogo.och.bus.passenger.model.BusPassengerModel
@@ -18,7 +19,7 @@ class BusPassengerFunctionDevicePresenter(view: BusPassengerFunctionDeviceFragme
private var subscribe: Disposable? = null
private var subscribeDoorStatus: Disposable? = null
- private var gnssSpeed =0f
+ private var gnssSpeed =0.0
companion object {
private const val TAG = "BusPassengerFunctionDevicePresenter"
@@ -35,7 +36,7 @@ class BusPassengerFunctionDevicePresenter(view: BusPassengerFunctionDeviceFragme
override fun onCarLocationChanged(location: MogoLocation?) {
location?.let {
- gnssSpeed = it.gnssSpeed
+ gnssSpeed = it.gnssInfo.vehicleSpeed
}
}
@@ -96,10 +97,10 @@ class BusPassengerFunctionDevicePresenter(view: BusPassengerFunctionDeviceFragme
}
private fun canOpenOrCloseDoor():String?{
- if(gnssSpeed==0f){
+ if(gnssSpeed==0.0){
return null
}else{
- return "车辆正在运行、请稍后再试"
+ return "速度:${gnssSpeed}车辆正在运行、请稍后再试"
}
}
diff --git a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionSoftFragment.kt b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionSoftFragment.kt
index b45fe03d17..9872c91961 100644
--- a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionSoftFragment.kt
+++ b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerFunctionSoftFragment.kt
@@ -314,11 +314,11 @@ class BusPassengerFunctionSoftFragment :
if(enable){
adapter.setEnable(true)
iv_temperature_select.visibility = View.VISIBLE
- rb_wind_speed_low.setTextColor(ContextCompat.getColor(requireContext(),R.color.bus_p_m1_6647576e))
+ rb_wind_speed_low.setTextColor(ContextCompat.getColorStateList(requireContext(),R.color.bus_p_function_airconditon_pattern_text_color_selector))
}else{
adapter.setEnable(false)
iv_temperature_select.visibility = View.GONE
- rb_wind_speed_low.setTextColor(ContextCompat.getColor(requireContext(),R.color.bus_p_function_airconditon_pattern_text_color_selector))
+ rb_wind_speed_low.setTextColor(ContextCompat.getColor(requireContext(),R.color.bus_p_m1_6647576e))
}
}
@@ -471,7 +471,7 @@ class BusPassengerFunctionSoftFragment :
mAudioManager?.setStreamVolume(
AudioManager.STREAM_MUSIC,
currnetValue,
- AudioManager.FLAG_SHOW_UI
+ AudioManager.FLAG_REMOVE_SOUND_AND_VIBRATE
)
}
}
diff --git a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerRouteFragment.kt b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerRouteFragment.kt
index 6984eca699..c857117102 100644
--- a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerRouteFragment.kt
+++ b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/ui/BusPassengerRouteFragment.kt
@@ -54,16 +54,16 @@ class BusPassengerRouteFragment :
true
}
omvOverMap.hideResetView()
- viewDriverMsgBoxButton.setClickListener(object : MMsgBoxButtonView.ClickListener {
+ viewBusPM1MsgBoxButton.setClickListener(object : MMsgBoxButtonView.ClickListener {
override fun showMsgBoxList(show: Boolean) {
if (show) {
- viewDriverMsgBoxList.visibility = View.VISIBLE
- viewDriverMsgBoxBubble.visibility = View.GONE
- viewDriverMsgBoxBubble.isShowData(false)
+ viewBusPM1MsgBoxList.visibility = View.VISIBLE
+ viewBusPM1MsgBoxBubble.visibility = View.GONE
+ viewBusPM1MsgBoxBubble.isShowData(false)
} else {
- viewDriverMsgBoxList.visibility = View.GONE
- viewDriverMsgBoxBubble.visibility = View.VISIBLE
- viewDriverMsgBoxBubble.isShowData(true)
+ viewBusPM1MsgBoxList.visibility = View.GONE
+ viewBusPM1MsgBoxBubble.visibility = View.VISIBLE
+ viewBusPM1MsgBoxBubble.isShowData(true)
}
}
diff --git a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/view/HorizontalDecoration.java b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/view/HorizontalDecoration.java
index dc0baf9052..53a3c85dd4 100644
--- a/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/view/HorizontalDecoration.java
+++ b/OCH/mogo-och-bus-passenger/src/m1/java/com/mogo/och/bus/passenger/view/HorizontalDecoration.java
@@ -11,7 +11,7 @@ public class HorizontalDecoration extends RecyclerView.ItemDecoration {
/**
* 第一个视图和最后一个视图偏移的距离
*/
- private int distance = 0;
+ private static int distance = 0;
private static final String TAG = "HorizontalDecoration";
/**
diff --git a/OCH/mogo-och-bus-passenger/src/m1/res/layout/bus_p_fragment.xml b/OCH/mogo-och-bus-passenger/src/m1/res/layout/bus_p_fragment.xml
index b3bc02a7b7..e7d0726719 100644
--- a/OCH/mogo-och-bus-passenger/src/m1/res/layout/bus_p_fragment.xml
+++ b/OCH/mogo-och-bus-passenger/src/m1/res/layout/bus_p_fragment.xml
@@ -164,36 +164,6 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file