1:修改房间送礼弹框,设置了展示的高度是自适应

2:修改一键赠送背包礼物多次点击的时候出现的错误
This commit is contained in:
2026-01-14 15:17:12 +08:00
parent e9ab535b2d
commit cdb5f9b794

View File

@@ -188,7 +188,8 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
int height = displayMetrics.heightPixels; int height = displayMetrics.heightPixels;
// 设置DialogFragment的高度为屏幕高度的70% // 设置DialogFragment的高度为屏幕高度的70%
dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, (int) (height * 0.7)); dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
// dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, (int) (height * 0.7));
} }
} }
@@ -472,7 +473,7 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
"确认", "确认",
"取消", "取消",
v -> { v -> {
if (gifyuseradapter.getUserIdToString() != null) { if (gifyuseradapter != null && gifyuseradapter.getUserIdToString() != null) {
// 点击“确认”按钮时执行删除操作 // 点击“确认”按钮时执行删除操作
MvpPre.getGiftPack(roomId, gifyuseradapter.getUserIdToString(), heart_id, auction_id); MvpPre.getGiftPack(roomId, gifyuseradapter.getUserIdToString(), heart_id, auction_id);
} }