[6.0.0] 1、轨迹导航再次打开需30s-1分钟才显示轨迹问题 2、反复点击导航按钮, 地图轨迹不加载问题
This commit is contained in:
@@ -134,7 +134,6 @@ class CommonAmapNaviVIew @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun onNaviCancel() {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
override fun onNaviBackClick(): Boolean {
|
||||
@@ -170,11 +169,11 @@ class CommonAmapNaviVIew @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun onMapTypeChanged(p0: Int) {
|
||||
TODO("Not yet implemented")
|
||||
|
||||
}
|
||||
|
||||
override fun onNaviViewShowMode(p0: Int) {
|
||||
TODO("Not yet implemented")
|
||||
|
||||
}
|
||||
|
||||
fun onCreate(savedInstanceState : Bundle?){
|
||||
|
||||
@@ -592,6 +592,7 @@ abstract class BaseTaxiTabFragment<V : IView, P : Presenter<V>> : MvpFragment<V,
|
||||
|
||||
fun showRoutingToStationFragment(isShow: Boolean) {
|
||||
val transaction: FragmentTransaction = childFragmentManager.beginTransaction()
|
||||
closeRoutingViewIfHadAdd()
|
||||
if (isShow) {
|
||||
closeAmapViewIFHadeAdd()
|
||||
taxiRoutingNaviFragment = TaxiRoutingNaviFragment.newInstance()
|
||||
@@ -605,7 +606,6 @@ abstract class BaseTaxiTabFragment<V : IView, P : Presenter<V>> : MvpFragment<V,
|
||||
module_mogo_och_navi_panel_container.visibility = View.VISIBLE
|
||||
smallMapView.visibility = View.GONE
|
||||
} else {
|
||||
closeRoutingViewIfHadAdd()
|
||||
taxi_close_navi_icon.visibility = View.GONE
|
||||
module_mogo_och_navi_panel_container.visibility = View.INVISIBLE //2023.9.4高德导航由gone设置成INVISIBLE,保留导航实例,避免导航被挂起
|
||||
smallMapView.visibility = View.VISIBLE
|
||||
|
||||
@@ -74,6 +74,7 @@ class TaxiMapDirectionView @JvmOverloads constructor(
|
||||
override fun onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow()
|
||||
// 注册定位监听
|
||||
clearPolyline()
|
||||
CallerChassisLocationGCJ02ListenerManager.removeListener(TAG)
|
||||
}
|
||||
|
||||
@@ -215,6 +216,7 @@ class TaxiMapDirectionView @JvmOverloads constructor(
|
||||
texIndexList.add(1)
|
||||
}
|
||||
if (mPolyline != null) {
|
||||
d(SceneConstant.M_TAXI + TAG, "mPolyline != null")
|
||||
mPolyline!!.points = allPoints
|
||||
mPolyline!!.options.customTextureIndex = texIndexList
|
||||
return
|
||||
@@ -234,10 +236,12 @@ class TaxiMapDirectionView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
// 绘制线
|
||||
d(SceneConstant.M_TAXI + TAG, "绘制线mPolyline = mAMap.addPolyline(polylineOptions)")
|
||||
mPolyline = mAMap.addPolyline(polylineOptions)
|
||||
}
|
||||
|
||||
override fun clearPolyline() {
|
||||
d(SceneConstant.M_TAXI + TAG, "clearPolyline")
|
||||
if (mPolyline != null) {
|
||||
mPolyline!!.remove()
|
||||
mPolyline = null
|
||||
|
||||
@@ -267,7 +267,7 @@ class TaxiCurrentTaskViewModel : BaseViewModel<UnmannedState, TaskUiIntent>(),
|
||||
driveToNearestStationTask: StartServiceRespBean.Result?,
|
||||
currentTaskWithOrder: QueryCurrentTaskRespBean.Result?
|
||||
) {
|
||||
if (currentTaskWithOrder?.endSite != null && currentTaskWithOrder.startSite != null
|
||||
if (currentTaskWithOrder?.endSite != null
|
||||
&& (currentTaskWithOrder.currentStatus < TaskStatusEnum.CompleteTask.code
|
||||
||currentTaskWithOrder.order != null)
|
||||
) {
|
||||
|
||||
@@ -706,7 +706,7 @@ object TaxiTaskModel {
|
||||
|
||||
if (result.order != null && result.currentStatus == TaskStatusEnum.CompleteTask.code
|
||||
&& result.servingStatus == 1){
|
||||
if (result.order!!.orderStatus <= TaxiOrderStatusEnum.ArriveAtStart.code) {
|
||||
if (result.order!!.orderStatus < TaxiOrderStatusEnum.ArriveAtStart.code) {
|
||||
VoiceNotice.showNotice("已为您接到订单")
|
||||
}
|
||||
if (result.taskType == TaskTypeEnum.ToOrderStartTask.code
|
||||
|
||||
Reference in New Issue
Block a user