Revert "Added option to disable partial words search after FTS"

This reverts commit c9b0d0ae4a.
This commit is contained in:
M66B
2023-08-19 19:09:56 +02:00
parent e8be216da2
commit 89f473821e
5 changed files with 8 additions and 64 deletions

View File

@@ -108,8 +108,6 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
interface IBoundaryCallbackMessages {
void onLoading();
void onScan();
void onLoaded(int found);
void onWarning(String message);
@@ -327,19 +325,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
db.endTransaction();
}
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean fts_fallback = prefs.getBoolean("fts_fallback", true);
if (!fts_fallback || state.ids.size() > 0 || state.matches != null)
if (state.ids.size() > 0)
return found;
else
ApplicationEx.getMainHandler().post(new Runnable() {
@Override
public void run() {
if (intf != null)
intf.onScan();
}
});
}
while (found < pageSize && !state.destroyed) {