From 5afed0ee433b2ae9441fcc4e01b65a88c341ebb9 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Fri, 18 Aug 2023 11:04:21 +0800 Subject: [PATCH] =?UTF-8?q?6.5.4=E7=A4=BC=E7=89=A9=E5=86=A0=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/live/dialog/LiveGiftPopup.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java b/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java index ffb61b6da..b6a1df975 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveGiftPopup.java @@ -212,17 +212,18 @@ public class LiveGiftPopup extends AbsDialogFragment { } }); //;连送 - ViewClicksAntiShake.clicksAntiShake(mBtnSendGroup, new ViewClicksAntiShake.ViewClicksCallBack() { + mBtnSendGroup.setOnClickListener(new View.OnClickListener() { @Override - public void onViewClicks() { - sendGift(); + public void onClick(View v) { + sendGiftHandler.post(sendGiftRunnble); } }); + //送礼 ViewClicksAntiShake.clicksAntiShake(liveGiftSend, new ViewClicksAntiShake.ViewClicksCallBack() { @Override public void onViewClicks() { - sendGift(); + sendGiftHandler.post(sendGiftRunnble); } }); @@ -506,6 +507,14 @@ public class LiveGiftPopup extends AbsDialogFragment { }); } + private Handler sendGiftHandler = new Handler(); + private Runnable sendGiftRunnble = new Runnable() { + @Override + public void run() { + sendGift(); + } + }; + /** * 赠送礼物 */