Added account categories

This commit is contained in:
M66B
2021-10-03 21:45:18 +02:00
parent 8516de0491
commit 50af1c5fb5
11 changed files with 2746 additions and 6 deletions

View File

@@ -72,8 +72,9 @@ public interface DaoAccount {
" LEFT JOIN folder AS sent ON sent.account = account.id AND sent.type = '" + EntityFolder.SENT + "'" +
" WHERE :all OR account.synchronize" +
" GROUP BY account.id" +
" ORDER BY CASE WHEN :all THEN 0 ELSE account.`order` END" +
", CASE WHEN :all THEN 0 ELSE account.`primary` END DESC" +
" ORDER BY account.`order`" +
", account.`primary` DESC" +
", account.category COLLATE NOCASE" +
", account.name COLLATE NOCASE")
LiveData<List<TupleAccountEx>> liveAccountsEx(boolean all);