[6.5.0] fix ui
This commit is contained in:
@@ -150,7 +150,7 @@ class RomaManager() : IMoGoPlanningRottingListener,
|
||||
}
|
||||
|
||||
private fun openRoma() {
|
||||
CallerMapIdentifyManager.roam = Pair(TAG, true)
|
||||
CallerMapIdentifyManager.updateRoam(TAG, true)
|
||||
CallerMapUIServiceManager.getMapUIController()?.visualAngleLock(true)
|
||||
CallerMapUIServiceManager.getMapUIController()?.setScrollGesturesEnable(false)
|
||||
updateLongSightLevel(true)
|
||||
@@ -159,7 +159,6 @@ class RomaManager() : IMoGoPlanningRottingListener,
|
||||
|
||||
@Synchronized
|
||||
private fun closeRoma(manual: Boolean = true) {
|
||||
CallerMapIdentifyManager.roam = Pair("", false)
|
||||
CallerMapUIServiceManager.getMapUIController()?.visualAngleLock(false)
|
||||
CallerMapUIServiceManager.getMapUIController()?.setScrollGesturesEnable(true)
|
||||
updateLongSightLevel(false)
|
||||
@@ -222,6 +221,7 @@ class RomaManager() : IMoGoPlanningRottingListener,
|
||||
)
|
||||
updateLongSightLevel(false)
|
||||
CallerMapRomaListener.invokeMapRoma(false)
|
||||
CallerMapIdentifyManager.updateRoam("", false)
|
||||
if (DebugConfig.isDebug()) {
|
||||
ToastUtils.showShort("漫游请求异常,msg:$errorMsg")
|
||||
}
|
||||
@@ -252,6 +252,7 @@ class RomaManager() : IMoGoPlanningRottingListener,
|
||||
mutableMapOf("delay" to true),
|
||||
true
|
||||
)
|
||||
CallerMapIdentifyManager.updateRoam("", false)
|
||||
MapIdentifySubscriber.instance.clearAiCloudRoma()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +111,6 @@ class RoadCrossCameraManager : IMoGoMapRoadListener {
|
||||
}
|
||||
|
||||
private fun addCameraDeviceMarker(cameraDeviceInfo: CameraDeviceInfo) {
|
||||
CallerLogger.d("$M_MAP$TAG", "add marker:${cameraDeviceInfo.deviceIp}")
|
||||
mContext?.let {
|
||||
val builder =
|
||||
Point.Options.Builder(TAG, Level.MAP_MARKER)
|
||||
@@ -136,6 +135,7 @@ class RoadCrossCameraManager : IMoGoMapRoadListener {
|
||||
traceError(" ${cameraDeviceInfo.deviceIp} click request error :$errorMsg")
|
||||
})
|
||||
}
|
||||
CallerLogger.d("$M_MAP$TAG", "add marker:$cameraDeviceInfo")
|
||||
overlayManager?.showOrUpdatePoint(builder.build())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import com.mogo.eagle.core.function.business.ai.AiCloudIdentifyDataManager.Compa
|
||||
import com.mogo.eagle.core.function.business.identify.MapIdentifySubscriber
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapAiCloudDataManager
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapIdentifyManager
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapRoadListenerManager
|
||||
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
@@ -97,6 +98,7 @@ class MapRoamView(context: Context?, attrs: AttributeSet?) : MogoMapView(context
|
||||
TAG,
|
||||
mapOf("startRoadRoam" to Pair("latLng" to latLng, "dis" to dis), "dis" to dis)
|
||||
)
|
||||
CallerMapIdentifyManager.updateRoam(RoadCrossRoamView.TAG, true)
|
||||
aiCloudIdentifyDataManager.trigger(true, 1, 300, latLng.first, latLng.second)
|
||||
}
|
||||
}
|
||||
@@ -113,6 +115,9 @@ class MapRoamView(context: Context?, attrs: AttributeSet?) : MogoMapView(context
|
||||
|
||||
override fun response(requestStatus: Boolean, errorMsg: String?) {
|
||||
trace(TAG, mapOf("response" to requestStatus, "errorMsg" to (errorMsg ?: "")))
|
||||
if(!requestStatus){
|
||||
CallerMapIdentifyManager.updateRoam("", false)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onAiIdentifyData(obj: SocketDownData.SocketDownDataProto?) {
|
||||
@@ -133,7 +138,6 @@ class MapRoamView(context: Context?, attrs: AttributeSet?) : MogoMapView(context
|
||||
latLng?.let {
|
||||
aiCloudIdentifyDataManager.trigger(false, 1, 300, it.first, it.second)
|
||||
}
|
||||
CallerMapAiCloudDataManager.removeListener(RoadCrossRoamView.TAG)
|
||||
MapIdentifySubscriber.instance.clearAiCloudRoma(MAP_ROAM)
|
||||
this.onPause()
|
||||
getUI()?.setVisible(false)
|
||||
|
||||
@@ -120,7 +120,7 @@ class RoadCrossRoamView @JvmOverloads constructor(
|
||||
}
|
||||
if (AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)) {
|
||||
if (tag == V2X_EVENT_TAG && v == View.VISIBLE) {
|
||||
val anim = ValueAnimator.ofInt(height, 410)
|
||||
val anim = ValueAnimator.ofInt(height, 475)
|
||||
anim.duration = 500
|
||||
anim.addUpdateListener { animation ->
|
||||
val value = animation.animatedValue as Int
|
||||
@@ -204,6 +204,7 @@ class RoadCrossRoamView @JvmOverloads constructor(
|
||||
if (CallerMapIdentifyManager.roam.first != TAG) {
|
||||
ToastUtils.showLong("正在漫游中,不展示路口漫游")
|
||||
}
|
||||
CallerLogger.d("$M_MAP$TAG","正在漫游中,不展示路口漫游")
|
||||
return
|
||||
}
|
||||
// 首页被遮挡不做提示
|
||||
@@ -213,7 +214,6 @@ class RoadCrossRoamView @JvmOverloads constructor(
|
||||
}
|
||||
CallerHmiViewControlListenerManager.invokeV2XEvent(View.VISIBLE, TAG)
|
||||
bringToFront()
|
||||
CallerMapIdentifyManager.roam = Pair(TAG, true)
|
||||
this.visibility = View.VISIBLE
|
||||
ivZhiRoadRoamView.visibility = View.VISIBLE
|
||||
mapRoamView.visibility = View.VISIBLE
|
||||
@@ -265,7 +265,7 @@ class RoadCrossRoamView @JvmOverloads constructor(
|
||||
}
|
||||
mapRoamView.closeRoam()
|
||||
mapRoamView.visibility = View.GONE
|
||||
CallerMapIdentifyManager.roam = Pair("", false)
|
||||
|
||||
lvRoadCrossRoamTip.adapter = null
|
||||
animator?.cancel()
|
||||
if (lightMode) {
|
||||
@@ -273,7 +273,7 @@ class RoadCrossRoamView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
if (AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode) && animScale) {
|
||||
setHeight(AutoSizeUtils.dp2px(context, 900f))
|
||||
setHeight(AutoSizeUtils.dp2px(context, 970f))
|
||||
(mapRoamView.layoutParams as? MarginLayoutParams)?.topMargin = 160
|
||||
(clScanningBg.layoutParams as? MarginLayoutParams)?.topMargin = 160
|
||||
(tvRoadRoamTitle.layoutParams as? MarginLayoutParams)?.leftMargin = 35
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 125 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
@@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg_nor_test_light">
|
||||
android:background="@drawable/bg_right_base_light">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="@dimen/dp_580"
|
||||
@@ -30,7 +30,7 @@
|
||||
android:id="@+id/ivZhiRoadRoamSet"
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="@dimen/dp_50"
|
||||
android:layout_marginStart="@dimen/dp_42"
|
||||
android:layout_marginStart="@dimen/dp_58"
|
||||
android:layout_marginTop="@dimen/dp_56"
|
||||
android:src="@drawable/bg_road_roam_anim_set"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
|
||||
Reference in New Issue
Block a user