Added folders refresh

This commit is contained in:
M66B
2019-02-28 10:43:46 +00:00
parent 59b13d15dd
commit 9391a0f2a3
5 changed files with 227 additions and 109 deletions

View File

@@ -39,6 +39,13 @@ public interface DaoFolder {
" AND (account.synchronize AND NOT account.ondemand)")
List<EntityFolder> getFoldersAutoSync();
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE folder.synchronize" +
" AND account.id = :account" +
" AND (account.synchronize AND account.ondemand)")
List<EntityFolder> getFoldersOnDemandSync(long account);
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.synchronize AND folder.synchronize AND unified")