Show contact photos in contact selector

This commit is contained in:
M66B
2020-02-26 10:09:33 +01:00
parent e8f918d366
commit 3af200791c
6 changed files with 81 additions and 12 deletions

View File

@@ -58,7 +58,7 @@ public interface DaoContact {
" AND email = :email COLLATE NOCASE")
EntityContact getContact(long account, int type, String email);
@Query("SELECT id AS _id, name, email, name || ' *' AS display" +
@Query("SELECT id AS _id, name, email, NULL AS photo, 1 AS local" +
" FROM contact" +
" WHERE (:account IS NULL OR account = :account)" +
" AND (:type IS NULL OR type = :type)" +