修改任务组分页逻辑

This commit is contained in:
DaveBoy1994
2020-03-02 19:47:16 +08:00
parent d92f1bba94
commit e770818cee
2 changed files with 28 additions and 13 deletions

View File

@@ -417,15 +417,7 @@ public class DownloadReceiver extends AbsReceiver {
* @return 如果没有任务组列表则返回null
*/
public List<DownloadGroupEntity> getGroupTaskList() {
List<DGEntityWrapper> wrappers = DbEntity.findRelationData(DGEntityWrapper.class);
if (wrappers == null || wrappers.isEmpty()) {
return null;
}
List<DownloadGroupEntity> entities = new ArrayList<>();
for (DGEntityWrapper wrapper : wrappers) {
entities.add(wrapper.groupEntity);
}
return entities;
return getGroupTaskList(1,10);
}
/**