diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-07-13 20:00:15 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-07-13 20:09:10 +0300 |
commit | c440d127248ceb175c2e7f0d97a9a5ae3acef8e0 (patch) | |
tree | ca16a694fe1accfb720f2f65ff03612df35edddd /app/src/main/java/it/niedermann/nextcloud/deck/model | |
parent | 6dd6a2d3bcb5cd57ddb9b7f41849ba15e3dfd007 (diff) |
#590 Add filter "unassigned cards"
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/internal/FilterInformation.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/internal/FilterInformation.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/internal/FilterInformation.java index 935845450..60791912f 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/model/internal/FilterInformation.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/internal/FilterInformation.java @@ -14,7 +14,6 @@ import it.niedermann.nextcloud.deck.model.enums.EDueType; public class FilterInformation implements Serializable { @NonNull private EDueType dueType = EDueType.NO_FILTER; - @NonNull private boolean noAssignedUser = false; @NonNull private List<User> users = new ArrayList<>(); @@ -30,7 +29,7 @@ public class FilterInformation implements Serializable { this.dueType = filterInformation.getDueType(); this.users.addAll(filterInformation.getUsers()); this.labels.addAll(filterInformation.getLabels()); - this.noAssignedUser= filterInformation.isNoAssignedUser(); + this.noAssignedUser = filterInformation.isNoAssignedUser(); } } @@ -95,6 +94,9 @@ public class FilterInformation implements Serializable { if (filterInformation == null) { return false; } - return filterInformation.getDueType() != EDueType.NO_FILTER || filterInformation.getUsers().size() > 0 || filterInformation.getLabels().size() > 0; + return filterInformation.getDueType() != EDueType.NO_FILTER + || filterInformation.getUsers().size() > 0 + || filterInformation.getLabels().size() > 0 + || filterInformation.noAssignedUser; } } |