Revert "Single sync service"

This reverts commit c0983d24f5.
This commit is contained in:
M66B
2019-03-02 07:15:49 +00:00
parent fdf4988865
commit 90444cd65e
9 changed files with 238 additions and 62 deletions

View File

@@ -85,12 +85,6 @@ public interface DaoOperation {
" AND message = :message")
int getOperationCount(long folder, long message);
@Query("SELECT COUNT(operation.id) FROM operation" +
" JOIN folder ON folder.id = operation.folder" +
" JOIN account ON account.id = folder.account" + // not outbox
" WHERE account.synchronize")
LiveData<Integer> livePendingOperationsCount();
@Query("UPDATE operation SET error = :error WHERE id = :id")
int setOperationError(long id, String error);