diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveGiftDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveGiftDialogFragment.java index d02b45f0c..181bc88c0 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveGiftDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveGiftDialogFragment.java @@ -768,7 +768,7 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On model = boxInfoModel; } } - if (model == null) return; + if (model == null) return; blindBoxOpen.clear(); blindBoxOpen.setVisibility(View.GONE); try { @@ -1078,6 +1078,8 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On @Subscribe(threadMode = ThreadMode.MAIN) public void onSendBlindGiftEvent(SendBlindGiftEvent event) { + if (!TextUtils.equals(String.valueOf(IMLoginManager.get(mContext).getUserInfo().getId()), event.getUid())) + return; BlindBoxInfoModel model = null; for (int i = 0; i < blindBoxInfoModels.size(); i++) { if (TextUtils.equals(blindBoxInfoModels.get(i).getBlindBoxType(), event.getBoxType())) { diff --git a/live/src/main/res/layout/view_blind_box.xml b/live/src/main/res/layout/view_blind_box.xml index bf3c77821..2cb8b02ae 100644 --- a/live/src/main/res/layout/view_blind_box.xml +++ b/live/src/main/res/layout/view_blind_box.xml @@ -5,9 +5,9 @@ @@ -17,24 +17,6 @@ android:layout_height="86.5dp" android:background="@mipmap/bg_kirin"> - - - - - - - + + + + + + + + + android:layout_marginStart="10dp" + android:layout_marginTop="2dp" /> \ No newline at end of file