盲盒加判断是不是本人

This commit is contained in:
18401019693 2023-06-01 10:26:08 +08:00
parent 56845de59d
commit 3488da27f0
2 changed files with 27 additions and 22 deletions

View File

@ -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())) {

View File

@ -5,9 +5,9 @@
<LinearLayout
android:layout_gravity="end"
android:layout_width="159dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:gravity="center_horizontal"
android:orientation="vertical">
<!--凤凰,龙,麒麟-->
@ -17,24 +17,6 @@
android:layout_height="86.5dp"
android:background="@mipmap/bg_kirin">
<RelativeLayout
android:layout_width="29dp"
android:layout_height="29dp"
android:layout_marginStart="14dp"
android:layout_marginTop="51dp">
<com.opensource.svgaplayer.SVGAImageView
android:id="@+id/blind_svga"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:id="@+id/icon_masking"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/icon_masking" />
</RelativeLayout>
<LinearLayout
android:layout_width="wrap_content"
@ -135,10 +117,31 @@
</FrameLayout>
</LinearLayout>
<com.opensource.svgaplayer.SVGAImageView
android:id="@+id/blind_svga"
android:layout_width="71dp"
android:layout_marginStart="5dp"
android:layout_height="71dp"
android:layout_marginTop="29dp" />
<RelativeLayout
android:layout_width="29dp"
android:layout_height="29dp"
android:layout_marginStart="27dp"
android:layout_marginTop="51dp">
<ImageView
android:id="@+id/icon_masking"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@mipmap/icon_masking" />
</RelativeLayout>
<com.opensource.svgaplayer.SVGAImageView
android:id="@+id/blind_box_open"
android:layout_width="61dp"
android:layout_marginTop="1dp"
android:layout_height="110dp"
android:layout_marginStart="7dp" />
android:layout_marginStart="10dp"
android:layout_marginTop="2dp" />
</FrameLayout>