首页添加双重刷新机制
This commit is contained in:
parent
c9fcd9fb91
commit
7614dc4476
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user