...
This commit is contained in:
@ -121,14 +121,14 @@ public class News4FragmentAdapter extends
|
||||
concernList = concernManager.getAllConcernBySort();
|
||||
|
||||
if (concernList != null && !concernList.isEmpty()) {
|
||||
sortList(concernList);
|
||||
sortList();
|
||||
initConcernNews(true);
|
||||
} else {
|
||||
initDatas();
|
||||
}
|
||||
}
|
||||
|
||||
private void sortList(List<ConcernInfo> list) {
|
||||
private void sortList() {
|
||||
Comparator<ConcernInfo> comparator = new Comparator<ConcernInfo>() {
|
||||
@Override
|
||||
public int compare(ConcernInfo lhs, ConcernInfo rhs) {
|
||||
@ -159,7 +159,7 @@ public class News4FragmentAdapter extends
|
||||
ll_loading.setVisibility(View.VISIBLE);
|
||||
concernList = concernManager.getAllConcernBySort();
|
||||
if (concernList != null && !concernList.isEmpty()) {
|
||||
sortList(concernList);
|
||||
sortList();
|
||||
initConcernNews(false);
|
||||
} else {
|
||||
ll_loading.setVisibility(View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user