修复战令购买后未刷新UI问题

This commit is contained in:
zlzw 2024-01-05 16:37:04 +08:00
parent 85ccbcccae
commit 6cdc648ea9

View File

@ -134,7 +134,7 @@ public class BattlePassActivity extends AbsActivity {
@Override @Override
public void onCallback(int code, String msg) { public void onCallback(int code, String msg) {
ToastUtil.show(msg); ToastUtil.show(msg);
fragments.get(viewPager.getCurrentItem()).updateData(); initData();
} }
}, },
String.valueOf(data.getLive_battle_pass_type().get(1).getId()), String.valueOf(data.getLive_battle_pass_type().get(1).getId()),
@ -221,6 +221,7 @@ public class BattlePassActivity extends AbsActivity {
if (data.isBattlePassStatus()) { if (data.isBattlePassStatus()) {
SpUtil.getInstance().removeValue("is_battle_pass_status"); SpUtil.getInstance().removeValue("is_battle_pass_status");
} }
fragments.get(viewPager.getCurrentItem()).updateData();
} }