1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-15 08:29:24 +00:00

Disable search suggestions for indexed search

This commit is contained in:
M66B 2020-08-13 09:20:24 +02:00
parent 2d93b98668
commit c5bfc1c362

View file

@ -108,7 +108,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
Log.i("Search suggest=" + typed);
MatrixCursor cursor = new MatrixCursor(new String[]{"_id", "suggestion"});
if (TextUtils.isEmpty(typed))
if (TextUtils.isEmpty(typed) || cbSearchIndex.isChecked())
return cursor;
String query = "%" + typed + "%";