From 05bdf717afe181dabeb3baaac886997dffb1fc5f Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Thu, 18 May 2023 11:57:37 +0800 Subject: [PATCH] =?UTF-8?q?[3.2.0]=E6=A0=B8=E9=94=80=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E9=9A=90=E8=97=8F=E6=B6=88=E6=81=AF=E7=9B=92=E5=AD=90?= =?UTF-8?q?=E7=BA=A2=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/function/hmi/ui/msgbox/MMsgBoxButtonView.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/msgbox/MMsgBoxButtonView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/msgbox/MMsgBoxButtonView.kt index e3c29a00c8..6da401c2f6 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/msgbox/MMsgBoxButtonView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/msgbox/MMsgBoxButtonView.kt @@ -7,7 +7,9 @@ import android.view.View import androidx.constraintlayout.widget.ConstraintLayout import com.mogo.eagle.core.data.msgbox.MsgBoxBean import com.mogo.eagle.core.function.api.datacenter.msgbox.IMsgBoxEventListener +import com.mogo.eagle.core.function.api.order.IOrderListener import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxEventListenerManager +import com.mogo.eagle.core.function.call.order.CallerOrderListenerManager import com.mogo.eagle.core.function.hmi.R import kotlinx.android.synthetic.main.view_m1_msg_box_button.view.* @@ -18,7 +20,7 @@ class MMsgBoxButtonView @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 -): ConstraintLayout(context, attrs, defStyleAttr), IMsgBoxEventListener { +): ConstraintLayout(context, attrs, defStyleAttr), IMsgBoxEventListener, IOrderListener { companion object { const val TAG = "MMsgBoxButtonView" @@ -41,11 +43,13 @@ class MMsgBoxButtonView @JvmOverloads constructor( override fun onAttachedToWindow() { super.onAttachedToWindow() CallerMsgBoxEventListenerManager.addListener(TAG,this) + CallerOrderListenerManager.addListener(TAG,this) } override fun onDetachedFromWindow() { super.onDetachedFromWindow() CallerMsgBoxEventListenerManager.removeListener(TAG) + CallerOrderListenerManager.removeListener(TAG) } override fun onSummaryClickEvent() { @@ -84,5 +88,9 @@ class MMsgBoxButtonView @JvmOverloads constructor( fun showMsgBoxList(show: Boolean) } + override fun onOrderRemoval() { + //核销订单,去除红点 + msgBoxMTipView.visibility = View.GONE + } } \ No newline at end of file