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(); + } + }; + /** * 赠送礼物 */