Limit synchronizing folders to 25

This commit is contained in:
M66B
2018-09-18 05:51:44 +00:00
parent 8a7bd92172
commit ff99597008
3 changed files with 26 additions and 3 deletions

View File

@@ -90,6 +90,10 @@ public interface DaoFolder {
" WHERE account = :account AND type = :type")
EntityFolder getFolderByType(long account, String type);
@Query("SELECT COUNT(folder.id) FROM folder" +
" WHERE account = :account AND `synchronize`")
int getFolderSyncCount(long account);
// For debug/crash info
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +