|
|
@@ -148,14 +148,14 @@ public abstract class BaseListFragment2<T> extends BaseFragment implements IRefr
|
|
|
}
|
|
|
|
|
|
public void initData() {
|
|
|
- if(loading) return;
|
|
|
- loading = true;
|
|
|
final String urlKey = getKey(page, per_page);
|
|
|
if (isFirstGetACache()) {
|
|
|
//先尝试获取缓存数据
|
|
|
lastCacheList = DataUtil.getInstance().getCacheList(urlKey, getTClass());
|
|
|
loadList(lastCacheList);
|
|
|
}
|
|
|
+ if(loading) return;
|
|
|
+ loading = true;
|
|
|
SysAppUtil.checkNet(new AbsObserver<Integer>() {
|
|
|
@Override
|
|
|
public void onNext(Integer result) {
|
|
|
@@ -247,7 +247,7 @@ public abstract class BaseListFragment2<T> extends BaseFragment implements IRefr
|
|
|
view_list.refreshComplete();
|
|
|
} else {
|
|
|
if(view_list != null)
|
|
|
- view_list.loadMoreComplete();
|
|
|
+ view_list.loadMoreComplete();
|
|
|
}
|
|
|
ViewUtil.notifyDataSetChanged(view_list);
|
|
|
notifyData();
|