diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/vehicle/TakeOverAutopilotView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/vehicle/TakeOverAutopilotView.kt index 9bc19b04ba..70ca520119 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/vehicle/TakeOverAutopilotView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/vehicle/TakeOverAutopilotView.kt @@ -2,11 +2,8 @@ package com.mogo.eagle.core.function.hmi.ui.vehicle import android.annotation.SuppressLint import android.app.Activity -import android.content.Context import android.graphics.PixelFormat -import android.util.AttributeSet import android.util.DisplayMetrics -import android.util.Log import android.view.Gravity import android.view.LayoutInflater import android.view.MotionEvent @@ -14,12 +11,10 @@ import android.view.View import android.view.WindowManager import android.widget.Button import android.widget.ToggleButton -import androidx.constraintlayout.widget.ConstraintLayout import com.mogo.eagle.core.data.enums.EventTypeEnumNew import com.mogo.eagle.core.data.msgbox.AutopilotMsg import com.mogo.eagle.core.data.msgbox.MsgBoxBean import com.mogo.eagle.core.data.msgbox.MsgBoxType -import com.mogo.eagle.core.data.msgbox.V2XMsg import com.mogo.eagle.core.data.takeover.TAKE_OVER_REQUEST import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager @@ -33,7 +28,6 @@ import com.mogo.eagle.core.utilcode.util.SPUtils import com.mogo.eagle.core.utilcode.util.SoundUtils import kotlinx.android.synthetic.main.view_remote_take_over_autopilot.view.* import kotlinx.android.synthetic.main.view_sop_setting.view.* -import kotlin.math.absoluteValue class TakeOverAutopilotView constructor(activity: Activity):View.OnTouchListener { @@ -233,9 +227,9 @@ class TakeOverAutopilotView constructor(activity: Activity):View.OnTouchListener // 更新浮动窗口位置参数 mInScreenX = motionEvent.rawX mInScreenY = motionEvent.rawY - if(((mInScreenX - mInViewX)-mWindowParams!!.x).absoluteValue>150 || ((mInScreenY - mInViewY)-mWindowParams!!.y).absoluteValue>150){ - return true - } +// if(((mInScreenX - mInViewX)-mWindowParams!!.x).absoluteValue>150 || ((mInScreenY - mInViewY)-mWindowParams!!.y).absoluteValue>150){ +// return true +// } mWindowParams!!.x = (mInScreenX - mInViewX).toInt() mWindowParams!!.y = (mInScreenY - mInViewY).toInt() // 手指移动的时候更新小悬浮窗的位置