From 2f52ff9124a549290dd5081e300f9c97a9eea89f Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 18 Jun 2024 18:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5PD=E4=BF=AE=E5=A4=8D=E5=86=85?= =?UTF-8?q?=E5=AE=B9:=20add[=E6=96=B0=E5=A2=9E=E6=B7=BB=E5=8A=A0=E6=95=B4?= =?UTF-8?q?=E8=A0=B1=E7=A6=AE=E7=89=A9=E6=8F=90=E7=A4=BA]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/dialog/LivePrankAddGiftNumberDialog.java | 5 +++++ .../com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java | 2 ++ 2 files changed, 7 insertions(+) diff --git a/live/src/main/java/com/yunbao/live/dialog/LivePrankAddGiftNumberDialog.java b/live/src/main/java/com/yunbao/live/dialog/LivePrankAddGiftNumberDialog.java index 0ea661e09..936b0e2c6 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LivePrankAddGiftNumberDialog.java +++ b/live/src/main/java/com/yunbao/live/dialog/LivePrankAddGiftNumberDialog.java @@ -15,6 +15,7 @@ import com.yunbao.common.bean.PrankGiftBean; import com.yunbao.common.dialog.AbsDialogPopupWindow; import com.yunbao.common.interfaces.OnItemClickListener; import com.yunbao.common.utils.DialogUitl; +import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.WordUtil; import com.yunbao.common.views.weight.ViewClicksAntiShake; import com.yunbao.live.R; @@ -110,6 +111,10 @@ public class LivePrankAddGiftNumberDialog extends AbsDialogPopupWindow { @Override public void onViewClicks() { if (onItemClickListener != null) { + if(mAdapter.getSelectNumber()==0){ + ToastUtil.show(WordUtil.isNewZh()?"請輸入數量":"Please enter the quantity"); + return; + } if (mAdapter.getSelectNumber() > 0) { giftNumber = mAdapter.getSelectNumber(); } diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java index db9add4f7..00b05d47c 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java @@ -689,6 +689,8 @@ public class LiveSwLinkMicPkPresenter extends AbsLinkMicPkPresenter implements V onLinkMicPkStart(mApplyUid, 2); } }); + //收起整蠱列表 + mLiveRoomViewHolder.closePrankView(); } @Override