1.修改代码

This commit is contained in:
2025-09-26 23:49:52 +08:00
parent 4a21c866f4
commit f68f6721e9

View File

@@ -57,7 +57,7 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
private CountDownTimer mCountDownTimer; private CountDownTimer mCountDownTimer;
private long endTime; // 服务器返回的结束时间戳 private long endTime; // 服务器返回的结束时间戳
private String num; private String num;
private XlhRankingDialog xlhRankingDialog; private NewXlhRankingDialog newXlhRankingDialog;
private XlhRecordDialog xlhRecordDialog; private XlhRecordDialog xlhRecordDialog;
private XlhObtainDialog xlhObtainDialog; private XlhObtainDialog xlhObtainDialog;
@@ -299,12 +299,12 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
dialog.show(); dialog.show();
} else if (id == R.id.tv_bd) { } else if (id == R.id.tv_bd) {
// 如果当前dialog存在且正在显示先关闭 // 如果当前dialog存在且正在显示先关闭
if (xlhRankingDialog != null && xlhRankingDialog.isVisible()) { if (newXlhRankingDialog != null && newXlhRankingDialog.isVisible()) {
xlhRankingDialog.dismiss(); newXlhRankingDialog.dismiss();
} }
xlhRankingDialog = XlhRankingDialog.newInstance(roomId,0); newXlhRankingDialog = NewXlhRankingDialog.newInstance(roomId);
xlhRankingDialog.show(getChildFragmentManager(), "XlhRankingDialog"); newXlhRankingDialog.show(getChildFragmentManager(), "newXlhRankingDialog");
} else if (id == R.id.tv_jl) { } else if (id == R.id.tv_jl) {
// 如果当前dialog存在且正在显示先关闭 // 如果当前dialog存在且正在显示先关闭
if (xlhRecordDialog != null && xlhRecordDialog.isVisible()) { if (xlhRecordDialog != null && xlhRecordDialog.isVisible()) {
@@ -533,8 +533,8 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
} }
// 如果当前dialog存在且正在显示先关闭 // 如果当前dialog存在且正在显示先关闭
if (xlhRankingDialog != null && xlhRankingDialog.isVisible()) { if (newXlhRankingDialog != null && newXlhRankingDialog.isVisible()) {
xlhRankingDialog.dismiss(); newXlhRankingDialog.dismiss();
} }
if (xlhObtainDialog != null && xlhObtainDialog.isShowing()) { if (xlhObtainDialog != null && xlhObtainDialog.isShowing()) {