1:修改礼物展示幸运币的简介
BIN
BaseModule/src/main/res/mipmap-hdpi/gift_mh.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
BaseModule/src/main/res/mipmap-hdpi/gift_xyb.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
BaseModule/src/main/res/mipmap-xhdpi/gift_mh.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
BaseModule/src/main/res/mipmap-xhdpi/gift_xyb.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
BaseModule/src/main/res/mipmap-xxhdpi/gift_mh.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
BaseModule/src/main/res/mipmap-xxhdpi/gift_xyb.png
Normal file
|
After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 13 KiB |
@@ -463,6 +463,7 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
|
|||||||
queren();
|
queren();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void queren() {
|
private void queren() {
|
||||||
// 创建并显示确认对话框
|
// 创建并显示确认对话框
|
||||||
new ConfirmDialog(ActivityUtils.getTopActivity(),
|
new ConfirmDialog(ActivityUtils.getTopActivity(),
|
||||||
@@ -478,6 +479,7 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
|
|||||||
// 点击“取消”按钮时什么都不做
|
// 点击“取消”按钮时什么都不做
|
||||||
}, false, 0).show();
|
}, false, 0).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String giftNumber = "";
|
private String giftNumber = "";
|
||||||
private RoomGiftGiveEvent roomGiftGiveEvent;
|
private RoomGiftGiveEvent roomGiftGiveEvent;
|
||||||
|
|
||||||
@@ -492,7 +494,7 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
|
|||||||
|
|
||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void userRefresh(GiftUserRefreshEvent event) {
|
public void userRefresh(GiftUserRefreshEvent event) {
|
||||||
if (event.gift == null || event.gift.getRule() == null) {
|
if (event.gift == null || event.gift.getRule() == null || event.gift.getGift_bag_name() == null) {
|
||||||
mBinding.llGiftRule.setVisibility(View.GONE);
|
mBinding.llGiftRule.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
if (event.gift.getActivities_id() == 5) {
|
if (event.gift.getActivities_id() == 5) {
|
||||||
@@ -557,6 +559,7 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
|
|||||||
if (giftDetailResp == null) {
|
if (giftDetailResp == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
mBinding.llGiftRule.setBackgroundResource(com.xscm.moduleutil.R.mipmap.gift_mh);
|
||||||
mBinding.tvTitle.setText(giftDetailResp.getGift_bag_name());
|
mBinding.tvTitle.setText(giftDetailResp.getGift_bag_name());
|
||||||
mBinding.tvIntroduce.setText(giftDetailResp.getRule());
|
mBinding.tvIntroduce.setText(giftDetailResp.getRule());
|
||||||
mBinding.ivWf.setOnClickListener(new View.OnClickListener() {
|
mBinding.ivWf.setOnClickListener(new View.OnClickListener() {
|
||||||
@@ -566,10 +569,8 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
|
|||||||
|
|
||||||
Intent intent = new Intent(getActivity(), WebViewActivity.class);
|
Intent intent = new Intent(getActivity(), WebViewActivity.class);
|
||||||
intent.putExtra("url", giftDetailResp.getRule_url());
|
intent.putExtra("url", giftDetailResp.getRule_url());
|
||||||
intent.putExtra("title", "盲盒规则");
|
intent.putExtra("title", giftDetailResp.getGift_bag_name() + "规则");
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -787,6 +788,7 @@ public class RoomGiftDialogFragment extends BaseMvpDialogFragment<RewardGiftPres
|
|||||||
// 初始化时设置按钮可见性
|
// 初始化时设置按钮可见性
|
||||||
updateTvBbQsVisibility(1);
|
updateTvBbQsVisibility(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 调用示例
|
// 调用示例
|
||||||
private void refreshCurrentGiftFragment(String id, int type, String roomId) {
|
private void refreshCurrentGiftFragment(String id, int type, String roomId) {
|
||||||
if (getCurrentGiftFragment() != null) {
|
if (getCurrentGiftFragment() != null) {
|
||||||
|
|||||||