[app] Drop useless getReleases().isEmpty() check (#429)

* Properly fixed with 87f9f2a3b6.
This commit is contained in:
Wang Han 2021-03-30 11:52:05 +08:00 committed by GitHub
parent e2c222ac1c
commit 7cea970131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public class RepoActivity extends ListActivity implements RepoLoader.Listener {
public void setData(Collection<OnlineModule> modules) {
fullList = new ArrayList<>(modules);
fullList = fullList.stream().filter((onlineModule -> !onlineModule.isHide() && !onlineModule.getReleases().isEmpty())).collect(Collectors.toList());
fullList = fullList.stream().filter((onlineModule -> !onlineModule.isHide())).collect(Collectors.toList());
int sort = preferences.getInt("repo_sort", 0);
if (sort == 0) {
fullList.sort((o1, o2) -> labelComparator.compare(o1.getDescription(), o2.getDescription()));