Added setting to sort suggested addresses on usage frequency

This commit is contained in:
M66B
2020-03-30 13:53:55 +02:00
parent 7b617e4d7c
commit f5e9ee86d1
6 changed files with 54 additions and 13 deletions

View File

@@ -63,8 +63,7 @@ public interface DaoContact {
" AND (:type IS NULL OR type = :type)" +
" AND (email LIKE :query COLLATE NOCASE OR name LIKE :query COLLATE NOCASE)" +
" AND state <> " + EntityContact.STATE_IGNORE +
" GROUP BY name, email" +
" LIMIT " + EntityContact.MAX_SUGGEST)
" GROUP BY name, email")
List<EntityContact> searchContacts(Long account, Integer type, String query);
@Insert