Support for non selectable folders

This commit is contained in:
M66B
2019-07-07 08:17:27 +02:00
parent e8ced5da45
commit 9f6c1f3ea9
11 changed files with 1838 additions and 17 deletions

View File

@@ -28,8 +28,10 @@ import java.util.List;
@Dao
public interface DaoFolder {
@Query("SELECT * FROM folder WHERE account = :account")
List<EntityFolder> getFolders(long account);
@Query("SELECT * FROM folder" +
" WHERE account = :account" +
" AND (NOT :selectable OR selectable)")
List<EntityFolder> getFolders(long account, boolean selectable);
@Query("SELECT folder.*" +
", account.id AS accountId, account.`order` AS accountOrder, account.name AS accountName, account.color AS accountColor, account.state AS accountState" +