盲盒加判断是不是本人
This commit is contained in:
parent
56845de59d
commit
3488da27f0
@ -1078,6 +1078,8 @@ public class LiveGiftDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
|
|
||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onSendBlindGiftEvent(SendBlindGiftEvent event) {
|
public void onSendBlindGiftEvent(SendBlindGiftEvent event) {
|
||||||
|
if (!TextUtils.equals(String.valueOf(IMLoginManager.get(mContext).getUserInfo().getId()), event.getUid()))
|
||||||
|
return;
|
||||||
BlindBoxInfoModel model = null;
|
BlindBoxInfoModel model = null;
|
||||||
for (int i = 0; i < blindBoxInfoModels.size(); i++) {
|
for (int i = 0; i < blindBoxInfoModels.size(); i++) {
|
||||||
if (TextUtils.equals(blindBoxInfoModels.get(i).getBlindBoxType(), event.getBoxType())) {
|
if (TextUtils.equals(blindBoxInfoModels.get(i).getBlindBoxType(), event.getBoxType())) {
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_gravity="end"
|
|
||||||
android:layout_width="159dp"
|
android:layout_width="159dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_gravity="end"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
<!--凤凰,龙,麒麟-->
|
<!--凤凰,龙,麒麟-->
|
||||||
@ -17,24 +17,6 @@
|
|||||||
android:layout_height="86.5dp"
|
android:layout_height="86.5dp"
|
||||||
android:background="@mipmap/bg_kirin">
|
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
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -135,10 +117,31 @@
|
|||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
</LinearLayout>
|
</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
|
<com.opensource.svgaplayer.SVGAImageView
|
||||||
android:id="@+id/blind_box_open"
|
android:id="@+id/blind_box_open"
|
||||||
android:layout_width="61dp"
|
android:layout_width="61dp"
|
||||||
android:layout_marginTop="1dp"
|
|
||||||
android:layout_height="110dp"
|
android:layout_height="110dp"
|
||||||
android:layout_marginStart="7dp" />
|
android:layout_marginStart="10dp"
|
||||||
|
android:layout_marginTop="2dp" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
Loading…
Reference in New Issue
Block a user