diff options
author | desperateCoder <echotodevnull@gmail.com> | 2020-07-23 12:40:55 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2020-07-23 12:40:55 +0300 |
commit | 6500744134c88065f403695266fdd4b41ba15dfe (patch) | |
tree | 71c70c5c7fa4d8a7e1ab7b3c6c569e2cce08d594 | |
parent | c765a054efaca99b1b2ad5227eb7092da77dac5f (diff) |
don't break the sync on OcsProject error
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/OcsProjectDataProvider.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/OcsProjectDataProvider.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/OcsProjectDataProvider.java index fe27e9baa..d8dccb8a0 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/OcsProjectDataProvider.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/helpers/providers/OcsProjectDataProvider.java @@ -29,7 +29,10 @@ public class OcsProjectDataProvider extends AbstractSyncDataProvider<OcsProject> @Override public void onError(Throwable throwable) { - responder.onError(throwable); + super.onError(throwable); + // dont break the sync! + responder.onResponse(Collections.emptyList()); +// responder.onError(throwable); } }); } |