diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-10-04 12:41:36 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2020-10-04 12:41:45 +0300 |
commit | c63a883dbf0f39d017ec2f39d39b3a84072eddc8 (patch) | |
tree | 9ea29e01cfb96edfb39475eb0fa3743343629479 /app/src/main/java/it/niedermann/nextcloud/deck/persistence | |
parent | e74f8b714ad6180f0cde0c12d1d23f06a88ba5ab (diff) |
add archive check
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/persistence')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java index f7dc2493e..65873c357 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/SyncManager.java @@ -1142,6 +1142,10 @@ public class SyncManager { if (cards.size() > 0) { CountDownLatch latch = new CountDownLatch(cards.size()); for (FullCard card : cards) { + if (card.getCard().isArchived()){ + latch.countDown(); + continue; + } card.getCard().setArchived(true); updateCardForArchive(stack, board, card, new IResponseCallback<FullCard>(account) { @Override |