From 416bf46803ac950e1e995aa81449f837177eb330 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 9 Apr 2020 20:43:28 +0200 Subject: [PATCH] Maximize search suggestions to 5 --- app/src/main/java/eu/faircode/email/DaoMessage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index 46816fa1ff..10ea7165a2 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -479,7 +479,8 @@ public interface DaoMessage { " WHERE sender LIKE :query" + " AND NOT message.ui_hide" + " GROUP BY sender" + - " ORDER BY sender, subject") + " ORDER BY sender, subject" + + " LIMIT 5") Cursor getSuggestions(String query); @Query("SELECT language FROM message" +