Pull down to refresh unified folders

This commit is contained in:
M66B
2018-12-03 16:29:49 +01:00
parent 4e2d91af6a
commit 5244eed68e
2 changed files with 21 additions and 4 deletions

View File

@@ -39,6 +39,9 @@ public interface DaoFolder {
" ORDER BY CASE WHEN folder.type = '" + EntityFolder.USER + "' THEN 1 ELSE 0 END")
List<EntityFolder> getFolders(long account, boolean synchronize);
@Query("SELECT * FROM folder WHERE unified")
List<EntityFolder> getUnifiedFolders();
@Query("SELECT * FROM folder" +
" WHERE account = :account" +
" AND type = '" + EntityFolder.USER + "'")