Revised compose actions

This commit is contained in:
M66B
2018-08-05 18:22:55 +00:00
parent bcb0f5b8a8
commit b1cc40bb47
11 changed files with 61 additions and 115 deletions

View File

@@ -78,8 +78,8 @@ public interface DaoFolder {
@Query("SELECT folder.* FROM folder" +
" JOIN account ON account.id = folder.account" +
" WHERE account.`primary` AND type = '" + EntityFolder.TYPE_DRAFTS + "' ")
EntityFolder getPrimaryDraftFolder();
" WHERE account.`primary` AND type = :type ")
EntityFolder getPrimaryFolder(String type);
@Insert(onConflict = OnConflictStrategy.REPLACE)
long insertFolder(EntityFolder folder);