Max 3 search suggestions

This commit is contained in:
M66B
2021-06-07 21:23:56 +02:00
parent 4035e66772
commit cebc18794f
2 changed files with 6 additions and 3 deletions

View File

@@ -593,8 +593,8 @@ public interface DaoMessage {
" GROUP BY sender" +
" ORDER BY sender, subject" +
" LIMIT 5")
Cursor getSuggestions(Long account, Long folder, String query);
" LIMIT :limit")
Cursor getSuggestions(Long account, Long folder, String query, int limit);
@Query("SELECT language FROM message" +
" WHERE (:account IS NULL OR message.account = :account)" +