diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-12-15 13:09:51 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-12-15 13:09:51 +0300 |
commit | 0e119e6e7e62855339b8416a85c9898400b116b0 (patch) | |
tree | 352d19a7745246321fc707e0c0e17c545fa01fb8 /app/src/main/java/it/niedermann | |
parent | f23dab6e2cf3572af07ecc84f1dd85b9a7528b14 (diff) |
Fix missing comments under some circumstances
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann')
2 files changed, 2 insertions, 2 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 d93835423..eb1e8afb3 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 @@ -423,6 +423,7 @@ public class SyncManager { Account acc = dataBaseAdapter.getAccountByIdDirectly(account.getId()); acc.applyCapabilities(response.getResponse(), response.getHeaders().get("ETag")); dataBaseAdapter.updateAccount(acc); + callback.getAccount().setServerDeckVersion(acc.getServerDeckVersion()); callback.onResponse(response.getResponse()); } diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/CardDataProvider.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/CardDataProvider.java index 0ceac2cd8..6f6c75c61 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/CardDataProvider.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/CardDataProvider.java @@ -22,7 +22,6 @@ import it.niedermann.nextcloud.deck.model.User; import it.niedermann.nextcloud.deck.model.enums.DBStatus; import it.niedermann.nextcloud.deck.model.full.FullCard; import it.niedermann.nextcloud.deck.model.full.FullStack; -import it.niedermann.nextcloud.deck.model.ocs.Version; import it.niedermann.nextcloud.deck.model.propagation.CardUpdate; import it.niedermann.nextcloud.deck.persistence.sync.adapters.ServerAdapter; import it.niedermann.nextcloud.deck.persistence.sync.adapters.db.DataBaseAdapter; @@ -142,7 +141,7 @@ public class CardDataProvider extends AbstractSyncDataProvider<FullCard> { } syncHelper.doSyncFor(new AttachmentDataProvider(this, board, stack.getStack(), existingEntity, attachments)); - if (callback.getAccount().getServerDeckVersionAsObject().isGreaterOrEqualTo(new Version("1.0.0", 1, 0, 0))) { + if (callback.getAccount().getServerDeckVersionAsObject().supportsComments()) { DeckLog.verbose("Comments - Version is OK, SYNC"); syncHelper.doSyncFor(new DeckCommentsDataProvider(this, existingEntity.getCard())); } else { |