diff --git a/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/StartAutopilotAnimationView.kt b/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/StartAutopilotAnimationView.kt
index 4a9ba7dc8c..b6166b60c6 100644
--- a/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/StartAutopilotAnimationView.kt
+++ b/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/StartAutopilotAnimationView.kt
@@ -1,8 +1,6 @@
package com.mogo.och.common.module.wigets;
-import android.annotation.SuppressLint
import android.content.Context
-import android.os.CountDownTimer
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
@@ -28,7 +26,7 @@ class StartAutopilotAnimationView @JvmOverloads constructor(
) : RelativeLayout(context, attrs, defStyleAttr){
companion object {
- private const val ALL_CLOSE_TIMER = 10000L
+ private const val ALL_CLOSE_TIMER = 5000L
private const val TAG = "StartAutopilotAnimationView"
}
@@ -38,7 +36,6 @@ class StartAutopilotAnimationView @JvmOverloads constructor(
private val closeWarningTask: Runnable = Runnable {
//开始倒计时
- countDownTimer()
showWarning(DirectionEnum.ALERT_WARNING_NON)
}
@@ -185,24 +182,24 @@ class StartAutopilotAnimationView @JvmOverloads constructor(
}
private fun countDownTimer() {
-
startAutopilotTip.visibility = VISIBLE
- startTimer = object : CountDownTimerExt(ALL_CLOSE_TIMER, 1000L) {// 5倒计时后开启自驾
+ startTimer = object : CountDownTimerExt(ALL_CLOSE_TIMER, 1000L) {// 5s倒计时后开启自驾
override fun onTimerTick(value: Long) {
// 倒计时
UiThreadHandler.post {
- startAutopilotTip.text = "${(value/1000).toInt()} 车辆即将自动开启自动驾驶"
+ startAutopilotTip.text = "${Math.ceil(value.toDouble()/1000).toInt()} 车辆即将自动开启自动驾驶"
}
playDI()
}
override fun onTimerFinish() {
+ cancelCountdown()
//倒计时结束了...
UiThreadHandler.post {
+ SoundPoolHelper.getSoundPoolHelper().releaseSoundPool()
startAutopilotTip.text = "车辆正在自动开启自动驾驶"
- dismiss(DirectionEnum.ALERT_WARNING_TOP)
}
}
diff --git a/OCH/taxi/driver/src/main/java/com/mogo/och/taxi/ui/TaxiBeingServerdOrdersFragment.java b/OCH/taxi/driver/src/main/java/com/mogo/och/taxi/ui/TaxiBeingServerdOrdersFragment.java
index 36c6e5f812..0fcc863c72 100644
--- a/OCH/taxi/driver/src/main/java/com/mogo/och/taxi/ui/TaxiBeingServerdOrdersFragment.java
+++ b/OCH/taxi/driver/src/main/java/com/mogo/och/taxi/ui/TaxiBeingServerdOrdersFragment.java
@@ -343,20 +343,15 @@ public class TaxiBeingServerdOrdersFragment extends BaseTaxiUIFragment
}
private void startNaviToStation(boolean isVoicePlay, double stationLat, double stationLng) {
- UiThreadHandler.post(new Runnable() {
- @Override
- public void run() {
- AmapNaviToDestinationModel.getInstance(getContext()).destroyAmaNavi();
+ AmapNaviToDestinationModel.getInstance(getContext()).destroyAmaNavi();
+ double mCurLatitude = CallerChassisLocationGCJ02ListenerManager.INSTANCE.getChassisLocationGCJ02().getLatitude();
+ double mCurLongitude =CallerChassisLocationGCJ02ListenerManager.INSTANCE.getChassisLocationGCJ02().getLongitude();
- double mCurLatitude = CallerChassisLocationGCJ02ListenerManager.INSTANCE.getChassisLocationGCJ02().getLatitude();
- double mCurLongitude =CallerChassisLocationGCJ02ListenerManager.INSTANCE.getChassisLocationGCJ02().getLongitude();
+ CallerLogger.d(M_TAXI + TAG, "currentLatLng=" + mCurLatitude + " " +mCurLongitude);
- CallerLogger.d(M_TAXI + TAG, "currentLatLng=" + mCurLatitude + " " +mCurLongitude);
- NaviLatLng startNaviLatLng = new NaviLatLng(mCurLatitude, mCurLongitude);
- NaviLatLng endNaviLatLng = new NaviLatLng(stationLat, stationLng);
- AmapNaviToDestinationModel.getInstance(getContext()).initAMapNavi(startNaviLatLng, endNaviLatLng);
- }
- });
+ NaviLatLng startNaviLatLng = new NaviLatLng(mCurLatitude, mCurLongitude);
+ NaviLatLng endNaviLatLng = new NaviLatLng(stationLat, stationLng);
+ AmapNaviToDestinationModel.getInstance(getContext()).initAMapNavi(startNaviLatLng, endNaviLatLng);
AmapNaviToDestinationModel.getInstance(getContext()).setVoiceIsMute(isVoicePlay);
AmapNaviToDestinationModel.getInstance(getContext()).setTaxiNaviChangedCallback(this);
}
diff --git a/OCH/taxi/driver/src/main/res/layout/taxi_base_fragment.xml b/OCH/taxi/driver/src/main/res/layout/taxi_base_fragment.xml
index 502f11874d..2299ba82c5 100644
--- a/OCH/taxi/driver/src/main/res/layout/taxi_base_fragment.xml
+++ b/OCH/taxi/driver/src/main/res/layout/taxi_base_fragment.xml
@@ -9,16 +9,17 @@
+ android:layout_height="match_parent"
+ app:isWeatherEnable="false" />
+ app:layout_constraintStart_toStartOf="parent"
+ app:locationIcon3DRes="@raw/chuzuche" />
+ android:background="@drawable/bad_case_selector_och" />
+ app:roma_open_bg="@drawable/taxi_operation_status_select_bg" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+