首页添加双重刷新机制

This commit is contained in:
lijia 2024-12-04 14:00:34 +08:00
parent c9fcd9fb91
commit 7614dc4476

View File

@ -1300,14 +1300,16 @@ public class HomeFragment extends BaseFragment {
public void onStart() {
super.onStart();
// ToastUtils.showToast(con,"onstart");
// refreshLayout.autoRefresh();
refreshWaybills();
}
private void refreshWaybills() {
// if (UiAuxiliary.isLogin(con)) {
// int curWaybillId = (int) SPUtils.get(con, "curWaybillId", -1);
// hyr.startOrder(curWaybillId == -1 ? 0 : curWaybillId);
// }
hyr.getHuoYuan(1, 100);
if (UiAuxiliary.isLogin(con)) {
int curWaybillId = (int) SPUtils.get(con, "curWaybillId", -1);
hyr.startOrder(curWaybillId == -1 ? 0 : curWaybillId);
}
}
@Subscribe