首页添加双重刷新机制

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() { public void onStart() {
super.onStart(); super.onStart();
// ToastUtils.showToast(con,"onstart"); // ToastUtils.showToast(con,"onstart");
// refreshLayout.autoRefresh();
refreshWaybills(); refreshWaybills();
} }
private void refreshWaybills() { private void refreshWaybills() {
// if (UiAuxiliary.isLogin(con)) { hyr.getHuoYuan(1, 100);
// int curWaybillId = (int) SPUtils.get(con, "curWaybillId", -1); if (UiAuxiliary.isLogin(con)) {
// hyr.startOrder(curWaybillId == -1 ? 0 : curWaybillId); int curWaybillId = (int) SPUtils.get(con, "curWaybillId", -1);
// } hyr.startOrder(curWaybillId == -1 ? 0 : curWaybillId);
}
} }
@Subscribe @Subscribe