diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-04-25 15:42:11 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-04-25 15:42:11 +0300 |
commit | b8586da45fb698d5a9d4d111074fa76904267687 (patch) | |
tree | 613e80b16ef8cdd2140eb26cd6354175fa7ea728 /app/src/main/java/it/niedermann/nextcloud/deck/ui/stack | |
parent | cbb7c274a53a4919e3802a9554c81fef24abfb44 (diff) |
Fix #411 Filter on board without stacks throws exception
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/ui/stack')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackAdapter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackAdapter.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackAdapter.java index 726613dbe..e544b51e2 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackAdapter.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/stack/StackAdapter.java @@ -53,7 +53,8 @@ public class StackAdapter extends FragmentStateAdapter { } public void setStacks(@NonNull List<FullStack> fullStacks, @NonNull Account currentAccount, long currentBoardId, boolean currentBoardHasEditPermission) { - this.stackList = fullStacks; + this.stackList.clear(); + this.stackList.addAll(fullStacks); this.account = currentAccount; this.boardId = currentBoardId; this.canEdit = currentBoardHasEditPermission; |