diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index 13a2a4524..79932a5a6 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -216,7 +216,7 @@ public interface PDLiveApi { ); /** - * 关注主播 + * 关注主播··································································· * * @param liveuid * @return diff --git a/live/src/main/java/com/yunbao/live/adapter/AnchorUserMicInfoAdapter.java b/live/src/main/java/com/yunbao/live/adapter/AnchorUserMicInfoAdapter.java index 7304344a7..68d50d2f7 100644 --- a/live/src/main/java/com/yunbao/live/adapter/AnchorUserMicInfoAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/AnchorUserMicInfoAdapter.java @@ -121,11 +121,12 @@ public class AnchorUserMicInfoAdapter extends RefreshAdapter { gift_svga = (SVGAImageView) itemView.findViewById(R.id.gift_svga); mBtn = itemView.findViewById(R.id.mic_btn); mClose = itemView.findViewById(R.id.mic_exit); - mBtn.setOnClickListener(v -> { - if (MicedUserManager.get().getMicUserList().size() < 3) { - if (v.getTag() != null) { - UserBean tag = (UserBean) v.getTag(); - ViewClicksAntiShake.clicksAntiShake(mBtn, () -> { + ViewClicksAntiShake.clicksAntiShake(mBtn, new ViewClicksAntiShake.ViewClicksCallBack() { + @Override + public void onViewClicks() { + if (MicedUserManager.get().getMicUserList().size() < 3) { + if (mBtn.getTag() != null) { + UserBean tag = (UserBean) mBtn.getTag(); if (tag.getTypeMic() == TYPE_MIC_REQUEST) { applyMic(tag, 4, createSocketSendBean()); ToastUtil.show(mContext.getString(R.string.live_mic_request)); @@ -140,12 +141,14 @@ public class AnchorUserMicInfoAdapter extends RefreshAdapter { applyMic(tag, 1, bean); ToastUtil.show(mContext.getString(R.string.live_mic_invite)); } - }); + } + }else { + ToastUtil.show(mContext.getString(R.string.live_mic_max)); } - }else { - ToastUtil.show(mContext.getString(R.string.live_mic_max)); } }); + + mClose.setOnClickListener(v -> { if (v.getTag() != null) { API.get().createPDLiveApi(false) 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 73d4e1991..874d557c7 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java @@ -597,7 +597,7 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener { Bus.get().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.UN_LEAVELIVE)); LiveSwAnchorActivity.isDRPK = 1; LivePushSwViewHolder.btn_close.setVisibility(View.VISIBLE); - //SocketSwLinkMicPkUtil.linkMicPkAccept(mSocketSwClient, mApplyUid, mApplyUrl, mApplyNmae); + SocketSwLinkMicPkUtil.linkMicPkAccept(mSocketSwClient, mApplyUid, mApplyUrl, mApplyNmae); EventBus.getDefault().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.UP_PK_TWO).setObject(mApplyUid)); onLinkMicPkStart(mApplyUid, 2); }