Disable search suggestions for indexed search

pull/184/head
M66B 4 years ago
parent 2d93b98668
commit c5bfc1c362

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

Loading…
Cancel
Save