[6.5.0][Fix]解决偶现终点不显示的问题
This commit is contained in:
@@ -3,12 +3,15 @@ package com.mogo.eagle.core.function.business.travelreality.view
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.Color
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import android.widget.ImageView
|
||||
import android.widget.TextView
|
||||
import androidx.constraintlayout.widget.ConstraintLayout
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig
|
||||
import com.mogo.eagle.core.function.map.R
|
||||
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
|
||||
|
||||
@SuppressLint("ViewConstructor")
|
||||
class EventVideoView @JvmOverloads constructor(
|
||||
@@ -46,8 +49,26 @@ class EventVideoView @JvmOverloads constructor(
|
||||
|
||||
private fun initView() {
|
||||
videoImgView = findViewById(R.id.videoImg)
|
||||
val eventLayout = findViewById<ConstraintLayout>(R.id.eventMarkerLayout)
|
||||
val titleView = findViewById<TextView>(R.id.tvTitle)
|
||||
|
||||
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
|
||||
when (orientation) {
|
||||
0 -> {
|
||||
eventLayout.setBackgroundResource(R.drawable.event_video_right_driver_bg)
|
||||
}
|
||||
1 -> {
|
||||
eventLayout.setBackgroundResource(R.drawable.event_video_down_driver_bg)
|
||||
}
|
||||
2 -> {
|
||||
eventLayout.setBackgroundResource(R.drawable.event_video_left_driver_bg)
|
||||
}
|
||||
else -> {
|
||||
eventLayout.setBackgroundResource(R.drawable.event_video_up_driver_bg)
|
||||
}
|
||||
}
|
||||
titleView.setTextColor(Color.WHITE)
|
||||
}
|
||||
title?.let {
|
||||
titleView.text = it
|
||||
}
|
||||
|
||||
@@ -341,11 +341,11 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
|
||||
override fun onAttachedToWindow() {
|
||||
super.onAttachedToWindow()
|
||||
initHandlers()
|
||||
advanceRequest()
|
||||
CallerPlanningRottingListenerManager.addListener(TAG, this)
|
||||
// 注册定位监听
|
||||
CallerChassisLocationGCJ02ListenerManager.addListener(TAG, this)
|
||||
initHandlers()
|
||||
advanceRequest()
|
||||
}
|
||||
|
||||
override fun onDetachedFromWindow() {
|
||||
@@ -1078,7 +1078,7 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
lastTime = System.currentTimeMillis()
|
||||
}
|
||||
globalPathResp?.let { globalPath ->
|
||||
nonFrequentHandler?.removeCallbacksAndMessages(null)
|
||||
// nonFrequentHandler?.removeCallbacksAndMessages(null)
|
||||
travelNetWorkModel.cancelAllRequest()
|
||||
|
||||
val pointList = ArrayList<Point>()
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
@@ -2,6 +2,7 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="324dp"
|
||||
android:layout_height="396dp"
|
||||
android:id="@+id/eventMarkerLayout"
|
||||
android:background="@drawable/event_video_down_bg"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="396dp"
|
||||
android:layout_height="324dp"
|
||||
android:id="@+id/eventMarkerLayout"
|
||||
android:background="@drawable/event_video_left_bg"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="396dp"
|
||||
android:layout_height="324dp"
|
||||
android:id="@+id/eventMarkerLayout"
|
||||
android:background="@drawable/event_video_right_bg"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="324dp"
|
||||
android:layout_height="396dp"
|
||||
android:id="@+id/eventMarkerLayout"
|
||||
android:background="@drawable/event_video_up_bg"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
Reference in New Issue
Block a user