From d9a84367c80d994b027dac69efa679281589bc3c Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Mon, 14 Oct 2024 10:14:59 +0800 Subject: [PATCH] =?UTF-8?q?[6.6.2]=E4=BF=AE=E5=A4=8D=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=A0=8F=E2=80=9C=E4=B8=8A=E6=8A=A5=E2=80=9D?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=82=B9=E5=87=BB=E5=90=8E=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wigets/map/reportworkorder/ReportWorkOrderView.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/OCH/common/common/src/main/java/com/mogo/och/common/module/wigets/map/reportworkorder/ReportWorkOrderView.kt b/OCH/common/common/src/main/java/com/mogo/och/common/module/wigets/map/reportworkorder/ReportWorkOrderView.kt index db015b5a2d..7b0fc6c75b 100644 --- a/OCH/common/common/src/main/java/com/mogo/och/common/module/wigets/map/reportworkorder/ReportWorkOrderView.kt +++ b/OCH/common/common/src/main/java/com/mogo/och/common/module/wigets/map/reportworkorder/ReportWorkOrderView.kt @@ -2,6 +2,7 @@ package com.mogo.och.common.module.wigets.map.reportworkorder import android.content.Context import android.util.AttributeSet +import android.view.MotionEvent import androidx.appcompat.widget.AppCompatImageView import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager import com.mogo.och.common.module.R @@ -27,9 +28,11 @@ class ReportWorkOrderView : AppCompatImageView{ setImageResource(R.drawable.common_reportwork) } - override fun onAttachedToWindow() { - super.onAttachedToWindow() - CallerDevaToolsManager.reportWorkOrder(this) + override fun onTouchEvent(event: MotionEvent?): Boolean { + if(event?.action == MotionEvent.ACTION_DOWN){ + CallerDevaToolsManager.reportWorkOrder(this) + } + return super.onTouchEvent(event) }