[6.5.0] 封装view遮挡功能,提供给间隔探查功能

This commit is contained in:
EmArrow
2024-07-11 18:44:16 +08:00
parent 01fe95696b
commit a6771e4d02
7 changed files with 37 additions and 5 deletions

View File

@@ -30,10 +30,15 @@ public class MogoRouteOverlayManager implements
private final LinkedList<List<MessagePad.TrajectoryPoint>> queue = new LinkedList<>();
private AtomicBoolean hasGreenWave = new AtomicBoolean(false);
private final AtomicBoolean hasGreenWave = new AtomicBoolean(false);
private final IViewControlListener listener = new IViewControlListener() {
@Override
public void v2xEventVisible(int v) {
}
@Override
public void updateFuncMode(@NonNull String tag, boolean b) {
}

View File

@@ -2,8 +2,10 @@ package com.mogo.eagle.core.function.view
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import com.mogo.eagle.core.function.api.setting.IMoGoSkinModeChangeListener
import com.mogo.eagle.core.function.call.hmi.CallerHmiViewControlListenerManager
import com.mogo.eagle.core.function.call.setting.CallerSkinModeListenerManager
import com.mogo.eagle.core.function.map.R
import com.mogo.eagle.core.utilcode.util.ThreadUtils
@@ -33,6 +35,7 @@ class CameraMarkerView(context: Context, attrs: AttributeSet? = null, defStyleAt
override fun onAttachedToWindow() {
super.onAttachedToWindow()
CallerSkinModeListenerManager.addListener(TAG, this)
CallerHmiViewControlListenerManager.invokeV2XEvent(TAG, View.VISIBLE)
}
override fun onSkinModeChange(skinMode: Int) {
@@ -70,6 +73,7 @@ class CameraMarkerView(context: Context, attrs: AttributeSet? = null, defStyleAt
override fun onDetachedFromWindow() {
super.onDetachedFromWindow()
CallerSkinModeListenerManager.removeListener(TAG)
CallerHmiViewControlListenerManager.invokeV2XEvent(TAG, View.GONE)
}
}

View File

@@ -139,6 +139,7 @@ class RoadCrossRoamView @JvmOverloads constructor(
CallerLogger.d("$M_MAP$TAG", "attachView return , mainPageVisible is false")
return
}
CallerHmiViewControlListenerManager.invokeV2XEvent(TAG, View.VISIBLE)
bringToFront()
CallerMapIdentifyManager.roam = Pair(TAG, true)
this.visibility = View.VISIBLE
@@ -198,6 +199,7 @@ class RoadCrossRoamView @JvmOverloads constructor(
if (lightMode) {
ivZhiRoadRoamView.clearAnimation()
}
CallerHmiViewControlListenerManager.invokeV2XEvent(TAG, View.GONE)
this.visibility = View.GONE
}