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);
MatrixCursor cursor = new MatrixCursor(new String[]{"_id", "suggestion"});
if (TextUtils.isEmpty(typed))
if (TextUtils.isEmpty(typed) || cbSearchIndex.isChecked())
return cursor;
String query = "%" + typed + "%";

Loading…
Cancel
Save