Added option to hide folders

Fixes #134
This commit is contained in:
M66B
2018-09-21 15:19:37 +00:00
parent 4c8a217edd
commit fe65235de6
11 changed files with 1211 additions and 128 deletions

View File

@@ -121,8 +121,15 @@ public interface DaoFolder {
" AND type = :type")
int setFolderUser(long account, String type);
@Query("UPDATE folder SET name = :name, display = :display, synchronize = :synchronize, unified = :unified, after = :after WHERE id = :id")
int setFolderProperties(long id, String name, String display, boolean synchronize, boolean unified, int after);
@Query("UPDATE folder" +
" SET name = :name" +
", display = :display" +
", hide = :hide" +
", synchronize = :synchronize" +
", unified = :unified" +
", after = :after" +
" WHERE id = :id")
int setFolderProperties(long id, String name, String display, boolean hide, boolean synchronize, boolean unified, int after);
@Query("UPDATE folder SET name = :name WHERE account = :account AND name = :old")
int renameFolder(long account, String old, String name);