From 51457738d2e7c0bb0072c520dabb91a69108c1db Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 16 Oct 2023 17:01:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/live/adapter/FrameGiftAdapter.java | 1 + .../java/com/yunbao/live/adapter/LiveParcelItemAdapter.java | 1 + .../main/java/com/yunbao/live/views/LiveGiftItemFragment.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/live/src/main/java/com/yunbao/live/adapter/FrameGiftAdapter.java b/live/src/main/java/com/yunbao/live/adapter/FrameGiftAdapter.java index 3ff3a7269..6e5acb0f2 100644 --- a/live/src/main/java/com/yunbao/live/adapter/FrameGiftAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/FrameGiftAdapter.java @@ -51,6 +51,7 @@ public class FrameGiftAdapter extends RecyclerView.Adapter { public void onCallBack(int position, LiveGiftBean model) { Bus.get().post(new LiveGiftItemEvent().setLiveGiftModel(model)); wishGiftId = null; + giftSelect(model); } }); } diff --git a/live/src/main/java/com/yunbao/live/adapter/LiveParcelItemAdapter.java b/live/src/main/java/com/yunbao/live/adapter/LiveParcelItemAdapter.java index 9f06c5816..8c1403d38 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveParcelItemAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveParcelItemAdapter.java @@ -43,6 +43,7 @@ public class LiveParcelItemAdapter extends RecyclerView.Adapter { @Override public void onCallBack(int position, LiveGiftBean model) { Bus.get().post(new LiveGiftItemEvent().setLiveGiftModel(model)); + giftSelect(model); } }); } diff --git a/live/src/main/java/com/yunbao/live/views/LiveGiftItemFragment.java b/live/src/main/java/com/yunbao/live/views/LiveGiftItemFragment.java index 72a927be9..ee7c03513 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveGiftItemFragment.java +++ b/live/src/main/java/com/yunbao/live/views/LiveGiftItemFragment.java @@ -78,7 +78,7 @@ public class LiveGiftItemFragment extends BaseFragment { @Subscribe(threadMode = ThreadMode.MAIN) public void onLiveGiftItemEvent(LiveGiftItemEvent event) { - frameGiftAdapter.giftSelect(event.getLiveGiftModel()); +// frameGiftAdapter.giftSelect(event.getLiveGiftModel()); } @Subscribe(threadMode = ThreadMode.MAIN) public void onLiveGiftItemRefreshEvent(LiveGiftItemRefreshEvent event) {