[m1]
[1.0.2] [有速度的情况下不允许开门、温度选择左右判断固定]
This commit is contained in:
@@ -4,6 +4,7 @@ import androidx.lifecycle.LifecycleOwner
|
|||||||
import com.mogo.eagle.core.data.map.MogoLocation
|
import com.mogo.eagle.core.data.map.MogoLocation
|
||||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
|
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
|
||||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
|
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.eagle.core.utilcode.util.ToastUtils
|
||||||
import com.mogo.och.bus.passenger.callback.IBusPassengerControllerStatusCallback
|
import com.mogo.och.bus.passenger.callback.IBusPassengerControllerStatusCallback
|
||||||
import com.mogo.och.bus.passenger.model.BusPassengerModel
|
import com.mogo.och.bus.passenger.model.BusPassengerModel
|
||||||
@@ -18,7 +19,7 @@ class BusPassengerFunctionDevicePresenter(view: BusPassengerFunctionDeviceFragme
|
|||||||
|
|
||||||
private var subscribe: Disposable? = null
|
private var subscribe: Disposable? = null
|
||||||
private var subscribeDoorStatus: Disposable? = null
|
private var subscribeDoorStatus: Disposable? = null
|
||||||
private var gnssSpeed =0f
|
private var gnssSpeed =0.0
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val TAG = "BusPassengerFunctionDevicePresenter"
|
private const val TAG = "BusPassengerFunctionDevicePresenter"
|
||||||
@@ -35,7 +36,7 @@ class BusPassengerFunctionDevicePresenter(view: BusPassengerFunctionDeviceFragme
|
|||||||
|
|
||||||
override fun onCarLocationChanged(location: MogoLocation?) {
|
override fun onCarLocationChanged(location: MogoLocation?) {
|
||||||
location?.let {
|
location?.let {
|
||||||
gnssSpeed = it.gnssSpeed
|
gnssSpeed = it.gnssInfo.vehicleSpeed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,10 +97,10 @@ class BusPassengerFunctionDevicePresenter(view: BusPassengerFunctionDeviceFragme
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun canOpenOrCloseDoor():String?{
|
private fun canOpenOrCloseDoor():String?{
|
||||||
if(gnssSpeed==0f){
|
if(gnssSpeed==0.0){
|
||||||
return null
|
return null
|
||||||
}else{
|
}else{
|
||||||
return "车辆正在运行、请稍后再试"
|
return "速度:${gnssSpeed}车辆正在运行、请稍后再试"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -314,11 +314,11 @@ class BusPassengerFunctionSoftFragment :
|
|||||||
if(enable){
|
if(enable){
|
||||||
adapter.setEnable(true)
|
adapter.setEnable(true)
|
||||||
iv_temperature_select.visibility = View.VISIBLE
|
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{
|
}else{
|
||||||
adapter.setEnable(false)
|
adapter.setEnable(false)
|
||||||
iv_temperature_select.visibility = View.GONE
|
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(
|
mAudioManager?.setStreamVolume(
|
||||||
AudioManager.STREAM_MUSIC,
|
AudioManager.STREAM_MUSIC,
|
||||||
currnetValue,
|
currnetValue,
|
||||||
AudioManager.FLAG_SHOW_UI
|
AudioManager.FLAG_REMOVE_SOUND_AND_VIBRATE
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,16 +54,16 @@ class BusPassengerRouteFragment :
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
omvOverMap.hideResetView()
|
omvOverMap.hideResetView()
|
||||||
viewDriverMsgBoxButton.setClickListener(object : MMsgBoxButtonView.ClickListener {
|
viewBusPM1MsgBoxButton.setClickListener(object : MMsgBoxButtonView.ClickListener {
|
||||||
override fun showMsgBoxList(show: Boolean) {
|
override fun showMsgBoxList(show: Boolean) {
|
||||||
if (show) {
|
if (show) {
|
||||||
viewDriverMsgBoxList.visibility = View.VISIBLE
|
viewBusPM1MsgBoxList.visibility = View.VISIBLE
|
||||||
viewDriverMsgBoxBubble.visibility = View.GONE
|
viewBusPM1MsgBoxBubble.visibility = View.GONE
|
||||||
viewDriverMsgBoxBubble.isShowData(false)
|
viewBusPM1MsgBoxBubble.isShowData(false)
|
||||||
} else {
|
} else {
|
||||||
viewDriverMsgBoxList.visibility = View.GONE
|
viewBusPM1MsgBoxList.visibility = View.GONE
|
||||||
viewDriverMsgBoxBubble.visibility = View.VISIBLE
|
viewBusPM1MsgBoxBubble.visibility = View.VISIBLE
|
||||||
viewDriverMsgBoxBubble.isShowData(true)
|
viewBusPM1MsgBoxBubble.isShowData(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
private static final String TAG = "HorizontalDecoration";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -164,36 +164,6 @@
|
|||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
||||||
<!--消息盒子选择入口-->
|
|
||||||
<com.mogo.eagle.core.function.hmi.ui.msgbox.MMsgBoxButtonView
|
|
||||||
android:id="@+id/viewDriverMsgBoxButton"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="@dimen/dp_50"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
|
||||||
|
|
||||||
<!--消息盒子打开视图-->
|
|
||||||
<com.mogo.eagle.core.function.hmi.ui.msgbox.MMsgBoxListView
|
|
||||||
android:id="@+id/viewDriverMsgBoxList"
|
|
||||||
android:layout_width="450dp"
|
|
||||||
android:layout_height="520dp"
|
|
||||||
android:visibility="gone"
|
|
||||||
android:layout_marginEnd="@dimen/dp_34"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/viewDriverMsgBoxButton"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/viewDriverMsgBoxButton" />
|
|
||||||
|
|
||||||
<!--消息盒子气泡视图-->
|
|
||||||
<com.mogo.eagle.core.function.hmi.ui.msgbox.MMsgBoxBubbleView
|
|
||||||
android:id="@+id/viewDriverMsgBoxBubble"
|
|
||||||
android:layout_width="450dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="@dimen/dp_34"
|
|
||||||
android:visibility="visible"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/viewDriverMsgBoxButton"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/viewDriverMsgBoxButton"/>
|
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/cb_bp_video_player"
|
android:id="@+id/cb_bp_video_player"
|
||||||
android:src="@drawable/bus_p_function_bottom_information_bg_selector"
|
android:src="@drawable/bus_p_function_bottom_information_bg_selector"
|
||||||
@@ -222,5 +192,35 @@
|
|||||||
android:layout_width="@dimen/dp_181"
|
android:layout_width="@dimen/dp_181"
|
||||||
android:layout_height="@dimen/dp_179"/>
|
android:layout_height="@dimen/dp_179"/>
|
||||||
|
|
||||||
|
<!--消息盒子选择入口-->
|
||||||
|
<com.mogo.eagle.core.function.hmi.ui.msgbox.MMsgBoxButtonView
|
||||||
|
android:id="@+id/viewBusPM1MsgBoxButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_50"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"/>
|
||||||
|
|
||||||
|
<!--消息盒子打开视图-->
|
||||||
|
<com.mogo.eagle.core.function.hmi.ui.msgbox.MMsgBoxListView
|
||||||
|
android:id="@+id/viewBusPM1MsgBoxList"
|
||||||
|
android:layout_width="450dp"
|
||||||
|
android:layout_height="520dp"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_marginEnd="@dimen/dp_34"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/viewBusPM1MsgBoxButton"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/viewBusPM1MsgBoxButton" />
|
||||||
|
|
||||||
|
<!--消息盒子气泡视图-->
|
||||||
|
<com.mogo.eagle.core.function.hmi.ui.msgbox.MMsgBoxBubbleView
|
||||||
|
android:id="@+id/viewBusPM1MsgBoxBubble"
|
||||||
|
android:layout_width="450dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="@dimen/dp_34"
|
||||||
|
android:visibility="visible"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/viewBusPM1MsgBoxButton"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/viewBusPM1MsgBoxButton"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
Reference in New Issue
Block a user