Switch to sqlite/fts4

This commit is contained in:
M66B
2022-09-26 08:13:03 +02:00
parent c4ea93f446
commit c30a1c60fe
7 changed files with 286 additions and 19 deletions

View File

@@ -154,8 +154,8 @@ public class FragmentDialogSearch extends FragmentDialogBase {
return cursor;
if (cbSearchIndex.isEnabled() && cbSearchIndex.isChecked()) {
SQLiteDatabase db = FtsDbHelper.getInstance(context);
List<String> suggestions = FtsDbHelper.getSuggestions(
SQLiteDatabase db = Fts4DbHelper.getInstance(context);
List<String> suggestions = Fts4DbHelper.getSuggestions(
db,
typed + "%",
MAX_SUGGESTIONS);